From c1b89cf3a0e5bda76f6ff0da3c81cfcc64666da6 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 26 Dec 2023 21:04:48 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index af61ed2b..a48a8d80 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -685,14 +685,16 @@ DAILYTEMP(){ temp_c='' fi - if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then - average1=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 1 ${vSENSOR// /_}) - average7=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 7 ${vSENSOR// /_}) - else - average1=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 1) - average7=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 7) - fi - + # if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then + # average1=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 1 ${vSENSOR// /_}) + # average7=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 7 ${vSENSOR// /_}) + # else + # average1=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 1) + # average7=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 7) + # fi + average1=0 + average7=0 + c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then temp_f=`echo "scale=2; ${temp_c}*1.8 + 32" | bc`