This commit is contained in:
2023-12-16 23:55:45 -06:00
parent f05364f959
commit 2b4a9f83d6
2 changed files with 3 additions and 5 deletions

View File

@@ -323,9 +323,7 @@ CHECKTEMP_SERVICE(){
fi
if [ "${SENSOR}" == "ServerRoomTH" ]; then
temp_f=`echo "scale=1; $(bc <<< "scale=1; ${temp_c}*1.8+32")+${PW_ServerRoomTH_Dev}" | bc`
elif [ "${SENSOR}" == "ServerRoomLA" ]; then
temp_f=${temp_c}
temp_f=`echo "scale=1; ${temp_c}*1.8+32+${PW_ServerRoomTH_Dev}" | bc`
else
[ "${PW_SENSOR_TYPE[${SENSOR}]}" == "cpu" ] && temp_f=$(echo "scale=2; $temp_c/1" | bc -l) || temp_f=$(bc <<< "scale=1; ${temp_c}*1.8+32")
(( $(bc <<<"${temp_f} < 1") )) && [[ "${temp_f}" = *"."* ]] && temp_f="0${temp_f}"