Update temp.inc.sh

This commit is contained in:
2024-05-09 22:08:59 -05:00
parent 08be4b37c5
commit 31536e1f13

View File

@@ -216,7 +216,7 @@ CHECKTEMP(){
fi
if [ ${DETAILS} -eq 1 ]; then
DIVIDER . white 60
DIVIDER . white 50
for M in 15 30 60 120; do
lico=" "
OLD_temp_f=($(${mysql_conn} -e "SELECT temp FROM servermonitor.sensor_data WHERE sensorid='${PW_SENSOR_ID[${SENSOR}]}' AND date >= DATE_SUB(NOW(), INTERVAL ${M} MINUTE) AND date <= DATE_SUB(NOW(), INTERVAL $(expr ${M} - 7) MINUTE) ORDER BY date ASC LIMIT 1"))