1
0
mirror of https://shylinux.com/x/icebergs synced 2025-05-02 03:29:25 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-09-25 21:40:16 +08:00
parent 8e2ccbaa12
commit 719decf59a

View File

@ -130,8 +130,9 @@ func init() {
} else if mdb.HashSelect(m, arg...); len(arg) > 0 {
m.EchoIFrame(m.MergePod(arg[0]))
} else {
stat := map[string]int{}
m.OptionFields("")
list := m.CmdMap(SPACE, mdb.NAME)
stat := map[string]int{}
m.Table(func(value ice.Maps) {
if _, ok := list[value[SPACE]]; ok {
m.Push(mdb.STATUS, ONLINE)
@ -141,7 +142,7 @@ func init() {
stat[OFFLINE]++
}
})
m.StatusTimeCount(stat)
m.Sort("status,space", ice.STR_R, ice.STR).StatusTimeCount(stat)
}
}},
})