diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index dedce37d..d6a8772b 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -788,7 +788,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ fi if [[ "${SENSORa}" != *"-Usage"* ]] && [[ "${SENSORa}" != *"FAN"* ]] && (( $(bc <<< "${temp_f} < ${temp_warn}") )); then - if (( $(bc <<< "${last_temp} >= 2") )); then + if (( $(bc <<< "${last_temp} >= ${temp_warn}") )); then [ -f ${PW_TMPFOLDER}/${SENSORa}.down ] && [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/${SENSORa}.down)) -ge 1800 ] && SENDNOTICE "${SENSOR} BACK TO NORMAL" "NORMAL TEMP: ${temp_f}${GAUGESH} Previous Temp: ${last_temp}${GAUGESH}" echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}${GAUGESH} - Back to NORMAL ${GAUGE} - Previous ${GAUGE}: ${last_temp}${GAUGESH}" >> ${logtemp}