From bac26a4ec0b680b29dd412678cc14d2a8aef0159 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 14 Aug 2023 21:43:44 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 723f20c4..b09a3ff2 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 <<< "scale=1; ${3}*1.8+32") - temp_crit=$(bc <<< "scale=0; ${4}*1.8+32") + temp_warn=$(bc <<< "${3}*1.8+32") + temp_crit=$(bc <<< "${4}*1.8+32") fi