Archived
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
This commit is contained in:
1 parent
3178807ba7
commit
b2e0ef7911
1 file changed
+3
-2
@@ -2041,8 +2041,9 @@ function update(s, dt) {
|
|||||||
* reads as a live measurement of a lane that drafted nothing. The lifetime ratio stays on
|
* 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,
|
* /stats and /metrics; what the tile answers is "what is it accepting now", and now, idle,
|
||||||
* it is accepting nothing.
|
* it is accepting nothing.
|
||||||
* THE SPARKLINE'S SCALE DIFFERS from the other tiles: its samples are 10 s drafting windows, not
|
* THE SPARKLINE'S SCALE DIFFERS from the other tiles: it samples only polls that DRAFTED (the
|
||||||
* 500 ms polls, so this box spans up to 120 windows of actual drafting rather than 60 s. */
|
* 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);
|
if (!(s.draft_positions && s.draft_positions.length)) setMetric("accept", null, DASH);
|
||||||
else if (awR != null) setMetric("accept", 100 * awR, pctn(awR, 0));
|
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 */
|
else setMetric("accept", 0, pctn(0, 0)); /* drafted nothing this poll -> 0, the idle figure */
|
||||||
|
|||||||
Reference in new issue
Block a user