mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-01 19:28:05 +08:00
fix: fix miss makezero bug (#1921)
Signed-off-by: alingse <alingse@foxmail.com>
This commit is contained in:
parent
f0d3a471eb
commit
9179d978c5
@ -319,7 +319,7 @@ func ClusterInfo(w http.ResponseWriter, r *http.Request) {
|
|||||||
var healthCapMem int64
|
var healthCapMem int64
|
||||||
var unhealthCapCPU int64
|
var unhealthCapCPU int64
|
||||||
var unhealthCapMem int64
|
var unhealthCapMem int64
|
||||||
usedNodeList := make([]*v1.Node, len(nodes))
|
usedNodeList := make([]*v1.Node, 0, len(nodes))
|
||||||
for i, v := range nodes {
|
for i, v := range nodes {
|
||||||
nodeHealth := false
|
nodeHealth := false
|
||||||
for _, con := range v.Status.Conditions {
|
for _, con := range v.Status.Conditions {
|
||||||
|
Loading…
Reference in New Issue
Block a user