From adf46a165424789b988c3a8eff9d416bc96b77fa Mon Sep 17 00:00:00 2001 From: Tyler Koenig Date: Sat, 16 May 2026 14:01:25 -0400 Subject: [PATCH] fix(tui): increase history buffer to 60 so sparkline fills completely --- internal/monitor/history.go | 2 +- internal/tui/tab_sites.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/monitor/history.go b/internal/monitor/history.go index 1049e04..69a7f4d 100644 --- a/internal/monitor/history.go +++ b/internal/monitor/history.go @@ -2,7 +2,7 @@ package monitor import "time" -const maxHistoryLen = 30 +const maxHistoryLen = 60 type SiteHistory struct { Latencies []time.Duration diff --git a/internal/tui/tab_sites.go b/internal/tui/tab_sites.go index ffd50dc..9417d9c 100644 --- a/internal/tui/tab_sites.go +++ b/internal/tui/tab_sites.go @@ -211,8 +211,8 @@ func (m Model) dynamicWidths() (nameW, sparkW int) { if sparkW < 10 { sparkW = 10 } - if sparkW > 40 { - sparkW = 40 + if sparkW > 60 { + sparkW = 60 } return }