Update temp.inc.sh
This commit is contained in:
1 parent
8e36e689a3
commit
7c366b5fc2
1 file changed
+1
@@ -94,6 +94,7 @@ CHECKTEMP(){
|
||||
fi
|
||||
done
|
||||
if [ "${sensorsqry}" != "" ]; then
|
||||
echo "SQ - ${sensorqry} - ${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 (${sensorqry}) AND date >= DATE_SUB(NOW(), INTERVAL ${R} MINUTE) AND date <= DATE_SUB(NOW(), INTERVAL $(expr ${R} - 7) MINUTE) ORDER BY date ASC LIMIT ${sq}"))
|
||||
|
||||
Reference in new issue
Block a user