summaryrefslogtreecommitdiff
path: root/internal/flamegraph/liveserver.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-27 23:04:55 +0200
committerPaul Buetow <paul@buetow.org>2026-02-27 23:04:55 +0200
commitf16162fc01429c1759adb4a63ba9a31f229e1603 (patch)
tree2c9e28ff20f1efc7918b5b2ea16558f50cc63217 /internal/flamegraph/liveserver.go
parent89e864669d62a88f337c02d2097de4afb37e6333 (diff)
flamegraph: default live update interval to 200ms
Diffstat (limited to 'internal/flamegraph/liveserver.go')
-rw-r--r--internal/flamegraph/liveserver.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/flamegraph/liveserver.go b/internal/flamegraph/liveserver.go
index 1cbb1d4..032bc3b 100644
--- a/internal/flamegraph/liveserver.go
+++ b/internal/flamegraph/liveserver.go
@@ -68,7 +68,7 @@ func handleSSE(lt *LiveTrie, interval time.Duration) http.HandlerFunc {
return
}
if interval <= 0 {
- interval = time.Second
+ interval = 200 * time.Millisecond
}
w.Header().Set("Content-Type", "text/event-stream")