From 1118a0470712a56160bda1c01bccea3553f64acd Mon Sep 17 00:00:00 2001 From: Ivan Daniluk Date: Sat, 2 May 2015 22:48:27 +0300 Subject: [PATCH] Single UI tweak --- ui_single.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui_single.go b/ui_single.go index a4f76f1..8492206 100644 --- a/ui_single.go +++ b/ui_single.go @@ -82,15 +82,16 @@ func (t *TermUISingle) Update(data UIData) { // Sparklines for i, name := range data.Vars { - if name.Kind() == KindString { - continue - } spl := &t.Sparkline.Lines[i] max := formatMax(service.Max(name)) spl.Title = fmt.Sprintf("%s: %v%s", name.Long(), service.Value(name), max) spl.TitleColor = colorByKind(name.Kind()) spl.LineColor = colorByKind(name.Kind()) + + if name.Kind() == KindString { + continue + } spl.Data = service.Values(name) }