From 79735e46d2f192903ed9c2c279c52a25f27764b1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 23 Apr 2024 14:37:45 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 46e98326..c5a7e732 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -1059,7 +1059,7 @@ Previous Temp: ${last_temp}${GAUGESH}" if [ ! -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.pre ]; then [ ! -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old ] && echo "${temp_f}" > ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.pre - elif [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.pre)) -ge 300 ]; then + elif [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.pre)) -ge 1800 ]; then [ -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old ] && mv -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old2 mv -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.pre ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old echo "${temp_f}" > ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.pre