diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 8954c255..72fd05dc 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -730,6 +730,7 @@ CHECKTEMPSENSOR(){ if [ "${1}" == "ServerRoomTH" ]; then temp_f=`echo "scale=2; (${temp_c}*(9/5))+32+${PW_ServerRoomTH_Dev}" | bc` else + echo $temp_c if [ "${PW_SENSOR_TYPE[${1}]}" == "cpu" ]; then temp_f=$(echo "scale=2; $temp_c/1" | bc -l) elif [ "${PW_SENSOR_TYPE[${1}]}" == "system" ] && [[ "${1}" = *"FAN"* ]]; then @@ -737,6 +738,7 @@ CHECKTEMPSENSOR(){ elif [ "${temp_f}" == "" ]; then temp_f=$(bc <<< "scale=2; (${temp_c}*(9/5))+32") fi + echo $temp_f (( $(bc <<<"${temp_f} < 1") )) && [[ "${temp_f}" = *"."* ]] && temp_f="0${temp_f}" fi