Update temp.inc.sh
This commit is contained in:
1 parent
fc380a249e
commit
c5706b0aa9
1 file changed
+1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user