Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Commit 2b5ef1b

Browse files
committed
Freeze metrics auto refresh
1 parent 34cbfa1 commit 2b5ef1b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/routes/(protected)/metrics/+page.svelte

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,14 @@
332332
333333
function toggleFrozen() {
334334
frozen = !frozen;
335-
if (!frozen) flushPendingMetrics();
335+
if (frozen) {
336+
// Freeze also halts REST polling so the table stays put.
337+
if (transport === "rest") stopAutoRefresh();
338+
} else {
339+
flushPendingMetrics();
340+
// Resume REST polling if the user had a refresh interval set.
341+
if (transport === "rest") startAutoRefresh();
342+
}
336343
}
337344
338345
function buildStreamUrl(): string {

0 commit comments

Comments
 (0)