From 4270787b75bb51c0e217aa8c8152bd46630ec6f4 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 11 Jan 2024 11:18:39 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/status.inc b/inc/status.inc index 46bccff8..b1aebc33 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -325,23 +325,23 @@ It was down for $(SHOW_TIME $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${ if [ ! -f ${NM_FOLDER}/${!PH}.down ]; then var=${NTYPE}_REPL_CHECK[@] if [ ! -z ${!var+x} ]; then - PH_CMD="ssh -q -o ConnectTimeout=1 -o ConnectionAttempts=1 root@${!PH}" + PH_CMD="ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${!PH}" echo "${NTYPE} Nodes ---" for rcheck in "${!var}"; do echo "${rcheck} folder (${NM_REPL_CHECK_LOC[${rcheck}]}/test.*.repl)" if [ $(${PH_CMD} 'ls ${NM_REPL_CHECK_LOC[${rcheck}]}/test.*.repl 2>/dev/null | wc -l') -gt 0 ]; then for replfile in $(${PH_CMD} ${NM_REPL_CHECK_LOC[${rcheck}]}/test.*.repl); do echo -en "${replfile} : " - [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.replclean)) -ge 1200 ] echo "Removing" || echo "Not Removing" + [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.replclean)) -ge 1200 ] && echo "Removing" || echo "Not Removing" done # rm -f ${NM_REPL_CHECK_LOC[${rcheck}]}/test.${STATUS_START//-/}.repl & else echo "no files found" fi done + echo fi fi - echo done # touch ${NM_TMPFOLDER}/.replclean fi