From cc4453f68c9fe819067a8b421d08fddcbe500c0c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 16 Sep 2023 13:38:58 -0500 Subject: [PATCH] Update status.inc --- inc/status.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/status.inc b/inc/status.inc index ddcaf870..d78adac0 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -517,8 +517,8 @@ STATUS(){ echo "$(date) - ${nip} - ${NM_HOSTNAMES[${nip}]}[${nip}] - (${NM_REPL_DESC[${rcheck}]}) Replicated folder timeout, it is not syncing" >> ${NM_LOGFILE} else snderrtime=`expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}~${rcheck}.repl.down)` - echo "HERE: $snderrtime" - if [ ${snderrtime} -gt 10 ]; then + # echo "HERE: $snderrtime" + if [ ${snderrtime} -gt 3600 ]; then toterrtime=`expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}~${rcheck}.repl.errtime)` SENDNOTICE "Repl-Timeout-'${NM_HOSTNAMES[${nip}]}[${nip}]'" "${NM_REPL_DESC[${rcheck}]} (${NM_REPL_CHECK_LOC[${rcheck}]}) It has been down for $(SHOW_TIME ${toterrtime})" 1