This commit is contained in:
2023-07-16 15:51:17 -05:00
parent 0f2ef64553
commit cbb8551943
2 changed files with 3 additions and 4 deletions

View File

@@ -793,9 +793,8 @@ GUI(){
fi;;
status)
if [ -f "${NM_FOLDER}/status-check.running" ]; then
fd=`stat --format=%Y "${NM_FOLDER}/status-check.running"`
cbd=$((`date +%s` - 450))
[ ${fd} -lt ${cbd} ] && rm -f "${NM_FOLDER}/status-check.running"
cbd=`date +%s`-$(stat -c %Y ${NM_FOLDER}/status-check.running)
[ ${cbd} -gt 900 ] && rm -f "${NM_FOLDER}/status-check.running"
fi
if [ ! -f "${NM_FOLDER}/status-check.running" ]; then
touch "${NM_FOLDER}/status-check.running"