diff --git a/powerwall.sh b/powerwall.sh index b09a3ff2..4cd4d053 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -95,8 +95,8 @@ CHECKTEMPSENSOR(){ elif [ "${PW_SENSOR_TYPE[${1}]}" == "esxi" ]; then temp_c=${2} temp_f=$(bc <<< "scale=2; ${temp_c}*1.8+32") - temp_warn=$(bc <<< "${3}*1.8+32") - temp_crit=$(bc <<< "${4}*1.8+32") + temp_warn=$(bc <<< "(${3}*1.8+32) / 1") + temp_crit=$(bc <<< "(${4}*1.8+32) / 1") fi