Update nodemgmt-scripts.sh

This commit is contained in:
2023-12-06 11:18:37 -06:00
parent 4cdec3806b
commit bee986ed6e

View File

@@ -946,9 +946,7 @@ GUI(){
if [ ! -f ${NM_TMPFOLDER}/.statusclean ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.statusclean)) -ge 3600 ]; then
for oldstatus_check in ${NM_TMPFOLDER}/*; do
if [ -d "${oldstatus_check}" ]; then
osc=$(date -d ${oldstatus_check##*/} +%s)
osc_time=$(expr $(date +%s) - ${osc})
echo "(${oldstatus_check}) $(date +%s) - ${osc} = ${osc_time}"
echo "(${oldstatus_check}) $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.statusclean) = $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.statusclean))"
fi
done
# touch ${NM_TMPFOLDER}/.statusclean