improved GUI password handling

fix serial console uptime
fix #384 round total values
This commit is contained in:
lumapu 2022-11-04 12:29:04 +01:00
parent 6a6d522d3b
commit 74f4a114cd
8 changed files with 19 additions and 14 deletions

View file

@ -113,7 +113,7 @@
// total
if(obj.length > 1) {
for(var j = 0; j < root.ch0_fld_names.length; j++) {
var val = total[j];
var val = Math.round(total[j] * 100) / 100;
if(val > 0) {
var sub = div(["subgrp"]);
sub.appendChild(span(val + " " + span(root["ch0_fld_units"][j], ["unit"]).innerHTML, ["value"]));