From 9857c4e5a6d8d452e701d0c23d6d824bc6453d01 Mon Sep 17 00:00:00 2001 From: geronet1 Date: Fri, 19 Apr 2024 15:11:13 +0200 Subject: [PATCH] fix total info --- src/web/html/index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/web/html/index.html b/src/web/html/index.html index 82bf36d4..864dc762 100644 --- a/src/web/html/index.html +++ b/src/web/html/index.html @@ -156,9 +156,10 @@ document.getElementById("iv").replaceChildren(p); if (count > 1) { - p.append(svg(iconInfo, 30, 30, "icon icon-info"), span("Total: " + total + " W"), br()); - document.getElementById("total").replaceChildren(p); - document.getElementById("total").appendChild(div(["class=\"hr\""])); + var t = div(["none"]); + t.append(svg(iconInfo, 30, 30, "icon icon-info"), span("Total: " + Math.round(total).toLocaleString() + " W"), br()); + document.getElementById("total").replaceChildren(t); + document.getElementById("total").appendChild(div(["hr"])); } }