Bring Back Realtime Table Stats
Release rolling / release (push) Successful in 7m55s

This commit is contained in:
Raven Scott
2026-08-04 22:37:41 -04:00
parent c5015a66e8
commit 637c386e33
12 changed files with 689 additions and 636 deletions
+9 -3
View File
@@ -33,17 +33,23 @@ test('normalizeStatsConfig clamps out-of-range values', (t) => {
test('normalizeStatsConfig accepts seconds aliases from UI', (t) => {
const n = normalizeStatsConfig({
collectIntervalSec: 5,
broadcastIntervalSec: 3,
collectIntervalSec: 5, // legacy alias → broadcast when broadcast unset
listIntervalSec: 20,
concurrency: 4,
samplesPerTick: 8,
})
t.is(n.broadcastIntervalMs, 5000)
t.is(n.collectIntervalMs, 5000)
t.is(n.broadcastIntervalMs, 3000)
t.is(n.listIntervalMs, 20000)
t.is(n.concurrency, 4)
t.is(n.samplesPerTick, 8)
const n2 = normalizeStatsConfig({
broadcastIntervalSec: 3,
collectIntervalSec: 9,
})
// explicit broadcast wins over legacy collect alias
t.is(n2.broadcastIntervalMs, 3000)
})
test('defaultStatsConfig is within limits', (t) => {