diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index a9d5f6de..86a304e6 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -46,6 +46,7 @@ STATUS(){ fi fi done + replstart=`date +%s` if [ "${ST_ACTION}" != "check" ]; then echo -e "${idsCL[Green]}Complete${idsCL[Default]}" echo @@ -488,6 +489,8 @@ STATUS(){ warn_timeout=`date --date='100 minutes' +%s` fi done + replend=`date +%s` + replruntime=$((replend-replstart)) if [ "${timeout}" = "true" ]; then if [ "${ST_ACTION}" != "check" ]; then echo -e "${idsCL[Red]}Timeout${idsCL[Default]}" @@ -499,7 +502,7 @@ STATUS(){ fi else if [ "${ST_ACTION}" != "check" ]; then - echo -e "${idsCL[Green]}Good${idsCL[Default]}" + echo -e "${idsCL[Green]}Good${idsCL[Default]} - synced in $(SHOW_TIME ${replruntime})" fi if [ -f ${FOLDER}/${nip}-${rcheck}.down ]; then rm -f ${FOLDER}/${nip}-${rcheck}.down