From d2bae877a41ba9dd64711abf8d253f11da18a53a Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Thu, 18 Dec 2025 08:23:16 +0100 Subject: [PATCH] no message --- Energy_Pie/module.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Energy_Pie/module.html b/Energy_Pie/module.html index 56eb053..dc7f4bd 100644 --- a/Energy_Pie/module.html +++ b/Energy_Pie/module.html @@ -215,8 +215,9 @@ function donutCard({ title, percent, subtitle, color }) { const share = clamp01(percent / 100); const r = 56; const c = 2 * Math.PI * r; - const dash = share * c; // farbiger Anteil - const rest = c - dash; // Rest (dunkel) + let dash = share * c; + // Schutz gegen Rundungs-Artefakte bei 99.9..100% + if (dash > c - 0.01) dash = c; return `