Update temp.inc.sh

This commit is contained in:
2025-04-27 14:10:02 -05:00
parent 2f3b9f8107
commit 69051dd9fb

View File

@@ -1245,7 +1245,7 @@ Previous Temp: ${last_temp}${GAUGESH}"
if [ ! -f ${PW_TMPFOLDER}/temp.critsys.${SENSOR}.pre ]; then
touch ${PW_TMPFOLDER}/temp.critsys.${SENSOR}.pre
//elif [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/temp.critsys.${SENSOR}.pre)) -ge 120 ] || [ ${temp_diff} > 1 ]; then
# elif [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/temp.critsys.${SENSOR}.pre)) -ge 120 ] || [ ${temp_diff} > 1 ]; then
elif [ ! -f ${PW_TMPFOLDER}/temp.critsys.${SENSOR} ] || [ ${temp_diff} > 1 ]; then
# if (( $(bc <<< "${temp_diff} >= 1") )); then
touch ${PW_TMPFOLDER}/temp.critsys.${SENSOR}.pre