This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-02-16 22:10:33 +08:00
parent 9532ec1db6
commit 77e0afefb5

View File

@ -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)) })