Capped end variable to 100%

master
David Volovskiy 2025-05-18 16:32:30 -04:00
parent 7a2a9ad3f4
commit 2e2f0c9b2b
1 changed files with 1 additions and 0 deletions

View File

@ -467,6 +467,7 @@ function getGaugeImage(date, ringType, step_target) {
} }
var start = 0; var start = 0;
var end = Math.round(ring_fill); var end = Math.round(ring_fill);
if ((end - start) > ring_max) end = ring_max; // Capping end var so the ring doesn't need to update if already full.
if (invertRing) { if (invertRing) {
start = ring_max - end; start = ring_max - end;
end = ring_max; end = ring_max;