mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
move compact field header into widgets
This commit is contained in:
@@ -23,6 +23,15 @@ type ContainerWidgets interface {
|
||||
SetMem(int64, int64, int)
|
||||
}
|
||||
|
||||
var CompactHeader = ui.NewRow(
|
||||
ui.NewCol(1, 0, slimPar("")),
|
||||
ui.NewCol(2, 0, slimPar("NAME")),
|
||||
ui.NewCol(2, 0, slimPar("CID")),
|
||||
ui.NewCol(2, 0, slimPar("CPU")),
|
||||
ui.NewCol(2, 0, slimPar("MEM")),
|
||||
ui.NewCol(2, 0, slimPar("NET RX/TX")),
|
||||
)
|
||||
|
||||
type Compact struct {
|
||||
Status *ui.Par
|
||||
Cid *ui.Par
|
||||
|
||||
Reference in New Issue
Block a user