diff --git a/static/brush-cost.js b/static/brush-cost.js index 31e2263..1b6a690 100644 --- a/static/brush-cost.js +++ b/static/brush-cost.js @@ -17,7 +17,7 @@ class Gauge extends HTMLElement { setValue(value, valueMax) { let clampedNormalized = Math.max(0, Math.min(1, value / valueMax)); this.style.setProperty("--progress", `${clampedNormalized * 100}%`); - this.title = `${this.label}: ${value} / ${valueMax} (${Math.ceil((value / valueMax) * 100)}%)`; + this.title = `${this.label}: ${value} / ${valueMax} (${Math.ceil(clampedNormalized * 100)}%)`; } }