Update temp.inc.sh

This commit is contained in:
2023-12-27 09:29:34 -06:00
parent fc380a249e
commit c5706b0aa9

View File

@@ -269,6 +269,7 @@ AVERAGETEMP(){
WHERE="sensorid=${sensorid}"
fi
if [ $(bc -l <<< "${daysback} < 1") -eq 1 ]; then
echo "HOURS BACK: $(ROUND $(bc <<< "scale=2; ${daysback}*24"))"
interval="$(ROUND $(bc <<< "scale=2; ${daysback}*24")) HOUR"
else
interval="${daysback} DAY"