mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
init expanded view, add cpu histogram
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
|
||||
type ContainerWidgets interface {
|
||||
Row() *ui.Row
|
||||
Render()
|
||||
Highlight()
|
||||
UnHighlight()
|
||||
SetCPU(int)
|
||||
@@ -34,6 +35,9 @@ func NewCompact(id string, name string) *Compact {
|
||||
}
|
||||
}
|
||||
|
||||
func (w *Compact) Render() {
|
||||
}
|
||||
|
||||
func (w *Compact) Row() *ui.Row {
|
||||
return ui.NewRow(
|
||||
ui.NewCol(2, 0, w.Name),
|
||||
|
||||
Reference in New Issue
Block a user