This commit is contained in:
2023-12-26 22:15:50 -06:00
parent 8101150004
commit 742297c302
2 changed files with 5 additions and 5 deletions

View File

@@ -713,12 +713,12 @@ SENDTEMP(){
if [ "${1}" != "" ]; then
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then
average1=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 1 ${vSENSOR// /_})
# average7=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 7 ${vSENSOR// /_})
average7=0
average7=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 7 ${vSENSOR// /_})
# average7=0
else
average1=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 1)
# average7=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 7)
average7=0
average7=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 7)
# average7=0
fi
fi

View File

@@ -789,7 +789,7 @@ fi
# done < <(${mysql_conn} -se "SELECT id,date,hum from servermonitor.sensor_data WHERE sensorid=18 AND hum!='';")
#
SENDTEMPS "TEST" ${2} &
SENDTEMP ${2}
# SENDTEMP ${2}
;;
iscsi-vm-shutdown)