Update temp.inc.sh

This commit is contained in:
2024-04-29 09:44:55 -05:00
parent ec3eabd00e
commit 36cb6ca635

View File

@@ -94,7 +94,6 @@ CHECKTEMP(){
fi
done
if [ "${sensorsqry}" != "" ]; then
echo "SQ - ${sensorsqry} - ${sq}"
declare -A RANGE_TEMPS
for R in ${PW_TEMPIND_RANGE[@]}; do
lookup=($(${mysql_conn} -e "SELECT sensorid,temp FROM servermonitor.sensor_data WHERE sensorid IN (${sensorsqry}) AND date >= DATE_SUB(NOW(), INTERVAL ${R} MINUTE) AND date <= DATE_SUB(NOW(), INTERVAL $(expr ${R} - 7) MINUTE) ORDER BY date ASC LIMIT ${sq}"))