This commit is contained in:
2024-01-01 10:36:13 -06:00
parent 71d42c5049
commit 7db0b59860
2 changed files with 2 additions and 4 deletions

View File

@@ -570,9 +570,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
else
wait=$(echo "scale=0; ${PW_MYSQL_LOG_INTERVAL_NORMAL}*60" | bc)
fi
echo "HERE: ${SENSOR} - ${lastinsert} - ${wait}"
if [ "${PW_SENSOR_ID[${SENSORa}]}" != "" ] && [ ${lastinsert} -ge ${wait} ]; then
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then
entityid=($(${mysql_conn} -e "SELECT id FROM servermonitor.entities WHERE BINARY name='${vSENSOR// /_}' AND sensorid='${PW_SENSOR_ID[${SENSORa}]}'"))