diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index c49081a1..5cf81446 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -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