From 801eb5eddbfe2e529cdc4194a847ad5ac923dd66 Mon Sep 17 00:00:00 2001 From: wackxu Date: Sat, 25 May 2019 17:30:23 +0800 Subject: [PATCH] Fix wrong calculation for nodeinfo used --- pkg/scheduler/api/node_info.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/scheduler/api/node_info.go b/pkg/scheduler/api/node_info.go index 0e94a51f8..d58cd57fa 100644 --- a/pkg/scheduler/api/node_info.go +++ b/pkg/scheduler/api/node_info.go @@ -90,6 +90,7 @@ func (ni *NodeInfo) SetNode(node *v1.Node) { ni.Allocatable = NewResource(node.Status.Allocatable) ni.Capability = NewResource(node.Status.Capacity) ni.Idle = NewResource(node.Status.Allocatable) + ni.Used = EmptyResource() for _, task := range ni.Tasks { if task.Status == Releasing {