From 7108719674a300d0a4e8e94808b93a4937f89470 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 6 Dec 2023 17:41:35 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index b5ff5c5e..e494637c 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -880,6 +880,7 @@ GUI(){ STATUS freespace ${3} else STATUSRUNS=($(find ${NM_TMPFOLDER}/* -maxdepth 1 -type d -iname "status-*" 2>/dev/null)) + echo "HERE: ${STATUSRUNS}" if [ ${STATUSRUNS} -le 3 ]; then STATUS_START=$(date +%Y-%m-%d-%H-%M-%S) STATUSRUN_TMPFOLDER="${NM_TMPFOLDER}/status-${STATUS_START}" @@ -926,7 +927,7 @@ GUI(){ ${NM_SCRIPT} status ${2} ${3} ${4} exit 0 else - if [ ! -f ${NM_TMPFOLDER}/.statusclean ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.overload)) -ge 600 ]; then + if [ ! -f ${NM_TMPFOLDER}/.overload ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.overload)) -ge 600 ]; then SENDNOTICE "NODEMGMT OVERLOAD" "Whooooaaaaa there cowboy, we got 3 threads running already.... easy killer!" 1 touch ${NM_TMPFOLDER}/.overload fi