mirror of
https://shylinux.com/x/icebergs
synced 2025-05-02 11:37:01 +08:00
add some
This commit is contained in:
parent
8e2ccbaa12
commit
719decf59a
@ -130,8 +130,9 @@ func init() {
|
|||||||
} else if mdb.HashSelect(m, arg...); len(arg) > 0 {
|
} else if mdb.HashSelect(m, arg...); len(arg) > 0 {
|
||||||
m.EchoIFrame(m.MergePod(arg[0]))
|
m.EchoIFrame(m.MergePod(arg[0]))
|
||||||
} else {
|
} else {
|
||||||
stat := map[string]int{}
|
m.OptionFields("")
|
||||||
list := m.CmdMap(SPACE, mdb.NAME)
|
list := m.CmdMap(SPACE, mdb.NAME)
|
||||||
|
stat := map[string]int{}
|
||||||
m.Table(func(value ice.Maps) {
|
m.Table(func(value ice.Maps) {
|
||||||
if _, ok := list[value[SPACE]]; ok {
|
if _, ok := list[value[SPACE]]; ok {
|
||||||
m.Push(mdb.STATUS, ONLINE)
|
m.Push(mdb.STATUS, ONLINE)
|
||||||
@ -141,7 +142,7 @@ func init() {
|
|||||||
stat[OFFLINE]++
|
stat[OFFLINE]++
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
m.StatusTimeCount(stat)
|
m.Sort("status,space", ice.STR_R, ice.STR).StatusTimeCount(stat)
|
||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user