0.5C granularity is enough and reduce number of KVS updates

This commit is contained in:
Gilles Grandou 2022-09-07 10:26:46 +02:00
parent 13e59a2615
commit c927997d69

View File

@ -226,7 +226,7 @@ function update_temp(temp) {
} }
status.lock_update = true; status.lock_update = true;
status.temp = Math.round(temp * 10) / 10; status.temp = Math.round(temp * 2) / 2;
if (status.temp > status.temp_today || status.temp_today === null) { if (status.temp > status.temp_today || status.temp_today === null) {
status.temp_today = status.temp; status.temp_today = status.temp;