Update temp.inc.sh

This commit is contained in:
2024-01-28 16:31:58 -06:00
parent 5390faae4a
commit dd864245ba

View File

@@ -317,6 +317,9 @@ AVERAGETEMP(){
WHERE="sensorid=${sensorid}"
fi
[ $(bc -l <<< "${daysback} < 1") -eq 1 ] && interval="$(ROUND $(bc <<< "scale=2; ${daysback}*24*60")) HOUR" || interval="${daysback} MINUTE"
echo -e "\nHERE: ${WHERE} - ${interval}\n"
while IFS=$'\t' read date temp hum speed ;do
if [[ "${PW_ESXI_FANSPEEDCONTROL_HOSTS}" = *"${PW_HOST_IDRACS[${sensor}]}"* ]]; then
temptotal=$(bc <<< "scale=2; ${temptotal}+${speed}")