From 67857641fdb74d1acac99755b4eb538390135f39 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 27 Jan 2024 22:00:01 -0600 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 2c953b56..2559468d 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -564,7 +564,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ ([ ! -f ${PW_TMPFOLDER}/.lastfancheck/${SENSORa} ] || [ "$(cat ${PW_TMPFOLDER}/.lastfancheck/${SENSORa})" != "${FanSpeed}" ]) && echo "${FanSpeed}" >| ${PW_TMPFOLDER}/.lastfancheck/${SENSORa} echo "${FanSpeed}" >| ${PW_TMPFOLDER}/.lastfancheck/${SENSORa}.set - elif (( $(bc <<< "${temp_f} >= $(expr ${DEFAULT_ESXI_EXHAUST_MIN} - 4)") )) && (( $(bc <<< "${temp_f} <= $(expr ${DEFAULT_ESXI_EXHAUST_MIN} + 5)") )); then + elif [ -f ${PW_TMPFOLDER}/.lastfancheck/${SENSORa}.set ] && (( $(bc <<< "${temp_f} >= $(expr ${DEFAULT_ESXI_EXHAUST_MIN} - 4)") )) && (( $(bc <<< "${temp_f} <= $(expr ${DEFAULT_ESXI_EXHAUST_MIN} + 5)") )); then #GOLDILOCK ZONE tmp=tmp