Update temp.inc.sh

This commit is contained in:
2024-05-09 22:29:00 -05:00
parent 5b9f0b3f69
commit 539a2f3530

View File

@@ -216,7 +216,7 @@ CHECKTEMP(){
fi
if [ ${DETAILS} -eq 1 ]; then
DIVIDER . white 50
DIVIDER . white ${PRI_WIDTH}
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"))