Skip to content

Commit

Permalink
Merge pull request kubernetes-retired#860 from wackxu/resetused
Browse files Browse the repository at this point in the history
Fix wrong calculation for nodeinfo used
  • Loading branch information
k8s-ci-robot authored May 27, 2019
2 parents be78f91 + 801eb5e commit 75d252a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/scheduler/api/node_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 75d252a

Please sign in to comment.