Update nodemgmt-scripts.sh

This commit is contained in:
2023-12-11 09:06:48 -06:00
parent 568d872e56
commit 09716fc07e

View File

@@ -922,6 +922,7 @@ GUI(){
${NM_SCRIPT} status ${2} ${3} ${4}
exit 0
else
echo -e "${idsCL[LightRed]}Whooooaaaaa there cowboy, we got 3 threads running already.... easy killer!${idsCL[Default]}"
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