From eb9d09cb44f85e4dc3aba016eb32912a5a91ed3b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 14 Aug 2023 21:49:43 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 8b037e77..bbda914a 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -95,10 +95,10 @@ CHECKTEMPSENSOR(){ elif [ "${PW_SENSOR_TYPE[${1}]}" == "esxi" ]; then temp_c=${2} temp_f=$(bc <<< "scale=2; ${temp_c}*1.8+32") - temp_warn=$(bc <<< "scale=2; (${3}*1.8+32)/1") - temp_warn=`echo ${temp_warn} | awk '{print int($1+0.5)}'` - temp_crit=$(bc <<< "scale=2; (${4}*1.8+32)/1") - temp_crit=`echo ${temp_crit} | awk '{print int($1+0.5)}'` + # temp_warn=$(bc <<< "scale=2; (${3}*1.8+32)/1") + temp_warn=`echo $(bc <<< "scale=2; (${3}*1.8+32)/1") | awk '{print int($1+0.5)}'` + # temp_crit=$(bc <<< "scale=2; (${4}*1.8+32)/1") + temp_crit=`echo $(bc <<< "scale=2; (${4}*1.8+32)/1") | awk '{print int($1+0.5)}'` fi