This commit is contained in:
2024-01-12 09:57:21 -06:00
parent e362ea1365
commit 37351ddafd
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
VERS='2.5.135-01122024'
VERS='2.5.136-01122024'
noheader=' update service dailytemp confsync -r -report '

View File

@@ -671,7 +671,7 @@ Previous Temp: ${last_temp}${GAUGESH}"
fi
[ -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR} ] && lastinsert=$(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.lastinsert/${SENSOR})) || lastinsert=100000
if [ $(ls ${PW_TMPFOLDER}/temp.* 2>/dev/null | wc -l) -gt 0 ] || [ -f ${PW_TMPFOLDER}/power.ac.low ] || [ -f ${PW_TMPFOLDER}/power.dc.low ]; then
if [ $(ls ${PW_TMPFOLDER}/temp.* 2>/dev/null | wc -l) -gt 0 ] || [ "$(compgen -G "${PW_TMPFOLDER}/power.*.low")" != "" ]; then
wait=$(echo "scale=0; ${PW_MYSQL_LOG_INTERVAL_ABNORMAL}*60" | bc)
else
wait=$(echo "scale=0; ${PW_MYSQL_LOG_INTERVAL_NORMAL}*60" | bc)