feat(tui): overhaul latency sparkline scaling, color, and layout #64

Merged
lerko merged 2 commits from feat/sparkline-overhaul into main 2026-06-05 00:01:25 +00:00
Showing only changes of commit 7bff79b09c - Show all commits
+1 -1
View File
@@ -12,7 +12,7 @@ var sparkChars = []rune{'▁', '▂', '▃', '▄', '▅', '▆', '▇', '█'}
func parseHex(hex string) (r, g, b uint8) { func parseHex(hex string) (r, g, b uint8) {
if len(hex) == 7 && hex[0] == '#' { if len(hex) == 7 && hex[0] == '#' {
fmt.Sscanf(hex[1:], "%02x%02x%02x", &r, &g, &b) _, _ = fmt.Sscanf(hex[1:], "%02x%02x%02x", &r, &g, &b)
} }
return return
} }