Update temp.inc.sh
This commit is contained in:
@@ -393,11 +393,15 @@ CHECKTEMP_SERVICE(){
|
||||
if [ "${SENSOR}" == "ServerRoomTH" ]; then
|
||||
temp_f=`echo "scale=2; ${temp_c}*1.8+32+${PW_ServerRoomTH_Dev}" | bc`
|
||||
else
|
||||
echo -en "H: ${SENSOR} : ${PW_SENSOR_TYPE[${SENSOR}]} - "
|
||||
if [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "cpu" ]; then
|
||||
echo 1
|
||||
temp_f=$(echo "scale=2; $temp_c/1" | bc -l)
|
||||
elif [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "system" ] && [[ "${SENSOR}" = *"FAN"* ]]; then
|
||||
echo 2
|
||||
temp_f=${temp_c}
|
||||
else
|
||||
echo 3
|
||||
temp_f=$(bc <<< "scale=2; ${temp_c}*1.8+32")
|
||||
fi
|
||||
(( $(bc <<<"${temp_f} < 1") )) && [[ "${temp_f}" = *"."* ]] && temp_f="0${temp_f}"
|
||||
|
||||
Reference in New Issue
Block a user