Update temp.inc.sh

This commit is contained in:
2025-04-27 14:09:12 -05:00
parent 310981e114
commit 2f3b9f8107

View File

@@ -1245,7 +1245,8 @@ 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 ]; 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
SENDNOTICE "${SENSOR_DESC} TEMP CRITICAL" "SYSTEM CRITICAL ${GAUGE}: ${temp_f}${GAUGESH} - (Difference of ${temp_diff}${GAUGESH})" 1