mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
update io labels
This commit is contained in:
parent
85eb5228ae
commit
77c3d00e67
@ -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 {
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user