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;