Update temp.inc.sh
This commit is contained in:
1 parent
47f73a3ec8
commit
53f940dbe4
1 file changed
+1
-1
+1
-1
@@ -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}"
|
||||
|
||||
Reference in new issue
Block a user