diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 8c0ddffb..f2fd1ce4 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -395,7 +395,7 @@ CHECKTEMP_SERVICE(){ else if [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "cpu" ]; then temp_f=$(echo "scale=2; $temp_c/1" | bc -l) - elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "system" ] && [[ "${SENSORa}" = *"FAN"* ]]; then + elif [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "system" ] && [[ "${SENSOR}" = *"FAN"* ]]; then temp_f=${temp_c} else temp_f=$(bc <<< "scale=2; ${temp_c}*1.8+32")