diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index a4ed542a..2e298aa1 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -426,7 +426,7 @@ CHECKTEMPSENSOR(){ temp_f=$(echo "scale=2; $temp_c/1" | bc -l) elif [ "${PW_SENSOR_TYPE[${1}]}" == "system" ] && [[ "${1}" = *"FAN"* ]]; then temp_f=${temp_c} - elif [ "${temp_f}" != "" ]; then + elif [ "${temp_f}" == "" ]; then temp_f=$(bc <<< "scale=2; (${temp_c}*(9/5))+32") fi (( $(bc <<<"${temp_f} < 1") )) && [[ "${temp_f}" = *"."* ]] && temp_f="0${temp_f}"