Update status.inc

This commit is contained in:
2024-01-11 11:19:44 -06:00
parent 4270787b75
commit 7cee52fbd6

View File

@@ -329,7 +329,7 @@ It was down for $(SHOW_TIME $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${
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
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"