Update temp.inc.sh

This commit is contained in:
2024-01-30 09:55:06 -06:00
parent a7f08fd8e7
commit 3e52e1b310

View File

@@ -589,7 +589,9 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
##### ESXI FAN CONTROL #####
elif [[ "${PW_ESXI_FANSPEEDCONTROL_HOSTS}" = *"${PW_HOST_IDRACS[${SENSORa}]}"* ]] && [[ "${vSENSOR}" = *"Exhaust"* ]]; then
echo a
if [ ! -f ${PW_TMPFOLDER}/.lastfancheck/${SENSORa}.set ] || [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.lastfancheck/${SENSORa}.set)) -ge 300 ]; then
echo b
if [ ! -f ${PW_TMPFOLDER}/.lastfancheck/${SENSORa}.set ] && (( $(bc <<< "${temp_f} < $(echo "scale=2; ${DEFAULT_ESXI_EXHAUST_MIN}+${ESXI_FANSPEED_GL_ZONE}" | bc)") )); then
echo 1
if [ ${FanSpeed} -ne ${DEFAULT_ESXI_FANSPEED} ]; then