mirror of
https://2025-dev.shylinux.com/x/20250213-machine
synced 2025-04-25 04:28:04 +08:00
add some
This commit is contained in:
parent
9532ec1db6
commit
77e0afefb5
@ -84,12 +84,10 @@ func (s monitor) List(m *ice.Message, arg ...string) {
|
||||
}
|
||||
}
|
||||
func (s monitor) Travel(m *ice.Message, arg ...string) {
|
||||
m.Cmdy("web.chat.dev.cluster.travel", "2025-dev.shylinux.com/x/20250213-machine", m.PrefixKey()).PushAction(s.Open)
|
||||
m.Cmdy("web.chat.dev.cluster.travel", ice.Info.Make.Module, m.PrefixKey()).PushAction(s.Open)
|
||||
stats := map[string]int{}
|
||||
m.Table(func(value ice.Maps) {
|
||||
kit.For([]string{"Thread", "Used", "Available", "DiskUsed", "DiskFree"}, func(key string) {
|
||||
stats[key] += kit.Int(value[key])
|
||||
})
|
||||
kit.For([]string{"Thread", "Used", "Available", "DiskUsed", "DiskFree"}, func(key string) { stats[key] += kit.Int(value[key]) })
|
||||
})
|
||||
list := []string{}
|
||||
kit.For(stats, func(key string, value int) { list = append(list, key, kit.FmtSize(value)) })
|
||||
|
Loading…
x
Reference in New Issue
Block a user