add custom label formatting, scale for expandedMem

This commit is contained in:
Bradley Cicenas
2017-01-08 18:07:56 +00:00
parent 72066aba6e
commit e73732ae98
5 changed files with 36 additions and 37 deletions

View File

@@ -14,23 +14,23 @@ type ExpandedNet struct {
}
func NewExpandedNet() *ExpandedNet {
net := &ExpandedNet{ui.NewSparklines(), NewDiffHistData(30), NewDiffHistData(30)}
net := &ExpandedNet{ui.NewSparklines(), NewDiffHistData(50), NewDiffHistData(50)}
net.BorderLabel = "NET"
net.Height = 8
net.Width = 35
net.Height = 6
net.Width = 50
net.X = 0
net.Y = 15
net.Y = 24
rx := ui.NewSparkline()
rx.Title = "RX"
rx.Height = 2
rx.Height = 1
rx.Data = net.rxHist.data
rx.TitleColor = ui.ColorDefault
rx.LineColor = ui.ColorGreen
tx := ui.NewSparkline()
tx.Title = "TX"
tx.Height = 2
tx.Height = 1
tx.Data = net.txHist.data
tx.TitleColor = ui.ColorDefault
tx.LineColor = ui.ColorYellow