From 342e7233b06de6a0f0b8034d59202ce4bb0f2379 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 7bd4490908..16257d4140 100644 --- a/pkg/scheduler/api/node_info.go +++ b/pkg/scheduler/api/node_info.go @@ -93,6 +93,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 {