Revert "shows total memory usage"

This reverts commit 1271ce96e8.
This commit is contained in:
Bradley Cicenas
2019-07-03 11:27:17 +00:00
parent dc14c79edf
commit c0db41ebcb
3 changed files with 1 additions and 19 deletions

View File

@@ -3,7 +3,7 @@ package widgets
import (
"fmt"
"time"
"github.com/bcicen/ctop/cwidgets"
ui "github.com/gizak/termui"
)
@@ -11,7 +11,6 @@ type CTopHeader struct {
Time *ui.Par
Count *ui.Par
Filter *ui.Par
Mem *ui.Par
bg *ui.Par
}
@@ -20,7 +19,6 @@ func NewCTopHeader() *CTopHeader {
Time: headerPar(2, ""),
Count: headerPar(24, "-"),
Filter: headerPar(40, ""),
Mem: headerPar(70, ""),
bg: headerBg(),
}
}
@@ -32,7 +30,6 @@ func (c *CTopHeader) Buffer() ui.Buffer {
buf.Merge(c.Time.Buffer())
buf.Merge(c.Count.Buffer())
buf.Merge(c.Filter.Buffer())
buf.Merge(c.Mem.Buffer())
return buf
}
@@ -61,10 +58,6 @@ func headerBg() *ui.Par {
return bg
}
func (c *CTopHeader) SetMemoryUsage(val int64) {
c.Mem.Text = cwidgets.ByteFormat(val)
}
func (c *CTopHeader) SetCount(val int) {
c.Count.Text = fmt.Sprintf("%d containers", val)
}