Update powerwall.sh

This commit is contained in:
2022-09-03 11:42:28 -05:00
parent e15aaa1e0a
commit b9b25b6bfa

View File

@@ -24,8 +24,8 @@ CHECKTEMP(){
echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 1 | read temp_warn
echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 2 | read temp_crit
temp_warn=$(($temp_warn + 0))
temp_crit=$(($temp_crit + 0))
temp_warn=$((temp_warn + 0))
temp_crit=$((temp_crit + 0))
if [ $temp_f -ge ${temp_warn} ] && [ $temp_f -lt ${temp_crit} ]; then
echo "WARNING: $temp_f"