Update temp.inc.sh

This commit is contained in:
2024-01-28 14:56:46 -06:00
parent 8ea6eed1e1
commit c4826d81f8

View File

@@ -308,6 +308,7 @@ AVERAGETEMP(){
sensorid=${1}
logsfound=0;
if [ "${3}" != "" ]; then
echo -e "\nHERE: WHERE BINARY name='${3}' AND sensorid='${sensorid}'\n"
entityid=($(${mysql_conn} -e "SELECT id FROM servermonitor.entities WHERE BINARY name='${3}' AND sensorid='${sensorid}'"))
entityid=${entityid[1]}
WHERE="sensorid=${sensorid} AND entity=${entityid}"