From b2e0ef7911b32f7506a4ff013d690bc4698cce69 Mon Sep 17 00:00:00 2001 From: "Memoria (Noblistic)" Date: Tue, 20 Oct 2026 12:48:39 +0000 Subject: [PATCH] dashboard: the accept sparkline comment described a sampling scheme that never existed Auditor flagged this twice; it is a lie in shipped source (the comment is served inside the page), so it goes before merge rather than after. The comment claimed the sparkline's samples are 10 s drafting windows. No 10 s clock exists anywhere in the page: HIST is 120 at the 500 ms poll (dashboard.cpp:1249), and the accept series pushes via noteSample only when the poll drafted (aw.dr > 0). The true distinction from the other tiles is the drafting-only sampling, not a different window length: 120 drafting samples are 60 s of continuous drafting, stretched over more wall-clock when drafting is intermittent. Comment-only change; no behavior touched. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI --- core/server/dashboard.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/server/dashboard.cpp b/core/server/dashboard.cpp index ca0a0264..6ca6195e 100644 --- a/core/server/dashboard.cpp +++ b/core/server/dashboard.cpp @@ -2041,8 +2041,9 @@ function update(s, dt) { * reads as a live measurement of a lane that drafted nothing. The lifetime ratio stays on * /stats and /metrics; what the tile answers is "what is it accepting now", and now, idle, * it is accepting nothing. - * THE SPARKLINE'S SCALE DIFFERS from the other tiles: its samples are 10 s drafting windows, not - * 500 ms polls, so this box spans up to 120 windows of actual drafting rather than 60 s. */ + * THE SPARKLINE'S SCALE DIFFERS from the other tiles: it samples only polls that DRAFTED (the + * others sample every poll), so its 120 samples span 60 s of continuous drafting at the 500 ms + * poll -- and more wall-clock than that when drafting is intermittent. */ if (!(s.draft_positions && s.draft_positions.length)) setMetric("accept", null, DASH); else if (awR != null) setMetric("accept", 100 * awR, pctn(awR, 0)); else setMetric("accept", 0, pctn(0, 0)); /* drafted nothing this poll -> 0, the idle figure */