fix: fix miss makezero bug (#1921)

Signed-off-by: alingse <alingse@foxmail.com>
This commit is contained in:
alingse 2024-06-03 15:59:16 +08:00 committed by GitHub
parent f0d3a471eb
commit 9179d978c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {