Commit 846c6d3
committed
fix(admin): clear baselineMbps on delete/clear so Avg Baseline doesn't linger
The "Avg Baseline" header stat is computed from baselineHistory, falling back to
state.baselineMbps when the history is empty. clearActiveRunView (delete-active)
and /api/clear cleared baselineHistory/nodeSpeedHistory but NOT baselineMbps — so
after deleting a run the stat fell back to the deleted run's baseline and kept
showing it. Null baselineMbps in both wipe paths (mirrors the baselineHistory
clearing already there). Test suite green (188/31/45/35).1 parent c00bf2e commit 846c6d3
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1006 | 1006 | | |
1007 | 1007 | | |
1008 | 1008 | | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
1009 | 1013 | | |
1010 | 1014 | | |
1011 | 1015 | | |
| |||
2738 | 2742 | | |
2739 | 2743 | | |
2740 | 2744 | | |
| 2745 | + | |
2741 | 2746 | | |
2742 | 2747 | | |
2743 | 2748 | | |
| |||
0 commit comments