update io labels

This commit is contained in:
Bradley Cicenas 2017-03-12 05:31:12 +00:00
parent 85eb5228ae
commit 77c3d00e67
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ type CompactHeader struct {
} }
func NewCompactHeader() *CompactHeader { func NewCompactHeader() *CompactHeader {
fields := []string{"", "NAME", "CID", "CPU", "MEM", "NET RX/TX", "IO Read/Write", "Pids"} fields := []string{"", "NAME", "CID", "CPU", "MEM", "NET RX/TX", "IO R/W", "Pids"}
ch := &CompactHeader{} ch := &CompactHeader{}
ch.Height = 2 ch.Height = 2
for _, f := range fields { for _, f := range fields {

View File

@ -10,7 +10,7 @@ import (
type IO struct { type IO struct {
*ui.Sparklines *ui.Sparklines
readHist *DiffHist readHist *DiffHist
writeHist *DiffHist writeHist *DiffHist
} }
@ -23,13 +23,13 @@ func NewIO() *IO {
io.Y = 24 io.Y = 24
read := ui.NewSparkline() read := ui.NewSparkline()
read.Title = "read" read.Title = "READ"
read.Height = 1 read.Height = 1
read.Data = io.readHist.Data read.Data = io.readHist.Data
read.LineColor = ui.ColorGreen read.LineColor = ui.ColorGreen
write := ui.NewSparkline() write := ui.NewSparkline()
write.Title = "write" write.Title = "WRITE"
write.Height = 1 write.Height = 1
write.Data = io.writeHist.Data write.Data = io.writeHist.Data
write.LineColor = ui.ColorYellow write.LineColor = ui.ColorYellow