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

@@ -496,7 +496,6 @@ STATUS(){
elif [ -f ${NM_TMPFOLDER}/repl.${rcheck}.${nip}.timeout ]; then
checked=timeout
fi
rm -f ${NM_TMPFOLDER}/repl.${rcheck}.${nip}.*
done
if [ "${checked}" == "timeout" ]; then
@@ -552,6 +551,7 @@ STATUS(){
${PH_CMD} rm -f ${NM_FOLDER}/test.repl &
${PH_CMD} rm -f ${NM_REPL_CHECK_LOC[${rcheck}]}/test.repl &
fi
rm -f ${NM_TMPFOLDER}/repl.${rcheck}.*
done
fi
fi

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"