From 46c7dc26bed15f84e2b690e255671437c3da549f Mon Sep 17 00:00:00 2001 From: "Memoria (Noblistic)" Date: Sun, 18 Oct 2026 23:46:20 +0000 Subject: [PATCH] dashboard: read the decode step as a percentage of the fastest, not a multiple of it The suffix was a ratio of time (100 * lastStepMs / ref): the fastest step read 100% and anything slower read ABOVE 100% -- 18.75 ms against a 15 ms floor printed "125% of best". Slower meant bigger, which is backwards. Flipped to a ratio of speed (100 * ref / lastStepMs): the fastest reads 100%, anything slower reads a percentage of it (the same pair now reads 80%), and the figure can never exceed 100% because ref is always the minimum. The "% of best" label now says what it shows. Operator-directed 2026-10-18; live-verified on the Tasmania lane (best 33.73ms / recent 35.76ms -> "94% of best"). Authored at: Tasmania Qwen 3.8 27B Dense XHigh (level not visible) via Open WebUI (cherry picked from commit 6540ff811addc15288e6fcaa09b37b6c82ee7ebb) --- core/server/dashboard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/server/dashboard.cpp b/core/server/dashboard.cpp index cdcb9bc3..8cd74955 100644 --- a/core/server/dashboard.cpp +++ b/core/server/dashboard.cpp @@ -1754,7 +1754,7 @@ function update(s, dt) { det = "best " + floorMs.toFixed(2) + "ms"; if (engRecentMs > 0) det += " · recent " + engRecentMs.toFixed(2) + "ms"; } - /* THE STEP AS A PERCENTAGE OF THE FASTEST THIS PROCESS HAS DONE AT THIS CONCURRENCY. Keyed by + /* THE STEP AS A PERCENTAGE OF THE FASTEST THIS PROCESS HAS DONE AT THIS CONCURRENCY: 100% is the fastest step, anything slower a percentage of it. Keyed by * concurrency on purpose: a c8 step read against the single-stream floor would report the batch * arriving as a slowdown -- the mistake that took the old drift line out. Raw ratio, no * threshold, no colour: the number is the statement. */ @@ -1762,7 +1762,7 @@ function update(s, dt) { const k = s.running; if (!(k in bestAt) || lastStepMs < bestAt[k]) bestAt[k] = lastStepMs; const ref = k === 1 && floorMs > 0 ? floorMs : bestAt[k]; - if (ref > 0) det += " · now " + Math.round(100 * lastStepMs / ref) + "% of best" + (k === 1 ? "" : "@c" + k); + if (ref > 0) det += " · now " + Math.round(100 * ref / lastStepMs) + "% of best" + (k === 1 ? "" : "@c" + k); } $("m-stepdet").textContent = det;