Single UI tweak

This commit is contained in:
Ivan Daniluk 2015-05-02 22:48:27 +03:00
parent 9b291c4cba
commit 1118a04707
1 changed files with 4 additions and 3 deletions

View File

@ -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)
}