Update temp.inc.sh

This commit is contained in:
2025-05-26 19:53:15 -05:00
parent 109ab49033
commit 810470e80c

View File

@@ -799,7 +799,7 @@ AVERAGETEMP(){
elif [[ "${lookback}" =~ ^[0-9]+$ ]]; then
interval="${lookback} DAY"
fi
if [ "${interval}" != "0" ]; then
if [ "${mysql_conn}" != "" ] && [ "${interval}" != "0" ]; then
while IFS=$'\t' read date temp hum speed ;do
if ([ "${3}" == "FanSpeed" ] && [[ "${PW_ESXI_FANSPEEDCONTROL_HOSTS}" = *"${PW_HOST_IDRACS[${sensor}]}"* ]]) || [ "${sensorid}" == "19" ]; then
val=${speed}