Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-30 14:30:48 -05:00
parent d160907d20
commit 53efe2abed

View File

@@ -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