Update temp.inc.sh

This commit is contained in:
2023-12-17 10:03:36 -06:00
parent 663e1a1f12
commit b27a7c7092

View File

@@ -481,6 +481,7 @@ Previous Temp: ${last_temp[${SENSOR//-/}]}${GAUGESH}"
[ ! -f ${PW_TMPFOLDER}/.log.sr.difference ] && touch ${PW_TMPFOLDER}/.log.sr.difference
temp_difference=$(bc <<< "scale=1; ${temp_probe_f}-${ServerRoomTH}")
(( $(bc <<<"${temp_difference} < 0") )) && temp_difference=`echo "scale=1; ${temp_difference} * -1" | bc`
echo "HERE: ${temp_probe_f} - ${ServerRoomTH} = ${temp_difference}"
echo ${temp_difference} >> ${PW_TMPFOLDER}/.log.sr.difference
fi
###################