Update temp.inc.sh

This commit is contained in:
2024-05-09 22:08:33 -05:00
parent 24636db5e9
commit 08be4b37c5

View File

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