Update status.inc

This commit is contained in:
2024-01-11 11:24:55 -06:00
parent 2bf5c81684
commit 46a279f77a

View File

@@ -331,8 +331,8 @@ It was down for $(SHOW_TIME $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${
echo "${rcheck} folder" echo "${rcheck} folder"
if [ $(${PH_CMD} ls ${NM_REPL_CHECK_LOC[${rcheck}]}/test.*.repl 2>/dev/null | wc -l) -gt 0 ]; then if [ $(${PH_CMD} ls ${NM_REPL_CHECK_LOC[${rcheck}]}/test.*.repl 2>/dev/null | wc -l) -gt 0 ]; then
for replfile in $(${PH_CMD} ls ${NM_REPL_CHECK_LOC[${rcheck}]}/test.*.repl); do for replfile in $(${PH_CMD} ls ${NM_REPL_CHECK_LOC[${rcheck}]}/test.*.repl); do
echo -en "${replfile} : " echo -e "${replfile} : $(expr $(${PH_CMD} stat -c %Y ${replfile}) - $(date +%s))"
[ $(expr $(${PH_CMD} stat -c %Y ${replfile}) - $(date +%s)) -ge 1200 ] && echo "Removing" || echo "Not Removing" # [ $(expr $(${PH_CMD} stat -c %Y ${replfile}) - $(date +%s)) -ge 1200 ] && echo "Removing" || echo "Not Removing"
done done
# rm -f ${NM_REPL_CHECK_LOC[${rcheck}]}/test.${STATUS_START//-/}.repl & # rm -f ${NM_REPL_CHECK_LOC[${rcheck}]}/test.${STATUS_START//-/}.repl &
else else