mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
initial refactor of all column widgets to standard interface
This commit is contained in:
@@ -7,6 +7,17 @@ type Log struct {
|
||||
Message string
|
||||
}
|
||||
|
||||
type Meta map[string]string
|
||||
|
||||
func NewMeta() Meta { return make(Meta) }
|
||||
|
||||
func (m Meta) Get(k string) string {
|
||||
if s, ok := m[k]; ok {
|
||||
return s
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type Metrics struct {
|
||||
CPUUtil int
|
||||
NetTx int64
|
||||
|
||||
Reference in New Issue
Block a user