Update temp.inc.sh

This commit is contained in:
voltron committed 2023-12-26 16:36:05 -06:00
1 parent ffc27fbea2
commit 669b3d65a3
1 file changed
+1 -1
+1 -1
View File
@@ -256,7 +256,7 @@ AVERAGETEMP(){
while IFS=$'\t' read date temp hum speed ;do
if [ "${sensorid}" == "14" ] || [ "${sensorid}" == "19" ]; then
temptotal=$(bc <<< "scale=2; ${temptotal}+${speed}")
temptotal=$(bc <<< "scale=0; ${temptotal}+${speed}")
else
temptotal=$(bc <<< "scale=2; ${temptotal}+${temp}")
fi