Update temp.inc.sh
This commit is contained in:
@@ -426,7 +426,7 @@ CHECKTEMPSENSOR(){
|
|||||||
temp_f=$(echo "scale=2; $temp_c/1" | bc -l)
|
temp_f=$(echo "scale=2; $temp_c/1" | bc -l)
|
||||||
elif [ "${PW_SENSOR_TYPE[${1}]}" == "system" ] && [[ "${1}" = *"FAN"* ]]; then
|
elif [ "${PW_SENSOR_TYPE[${1}]}" == "system" ] && [[ "${1}" = *"FAN"* ]]; then
|
||||||
temp_f=${temp_c}
|
temp_f=${temp_c}
|
||||||
elif [ "${temp_f}" != "" ]; then
|
elif [ "${temp_f}" == "" ]; then
|
||||||
temp_f=$(bc <<< "scale=2; (${temp_c}*(9/5))+32")
|
temp_f=$(bc <<< "scale=2; (${temp_c}*(9/5))+32")
|
||||||
fi
|
fi
|
||||||
(( $(bc <<<"${temp_f} < 1") )) && [[ "${temp_f}" = *"."* ]] && temp_f="0${temp_f}"
|
(( $(bc <<<"${temp_f} < 1") )) && [[ "${temp_f}" = *"."* ]] && temp_f="0${temp_f}"
|
||||||
|
|||||||
Reference in New Issue
Block a user