Skip to content

Commit

Permalink
Merge pull request volcano-sh#19 from asifdxtreme/master
Browse files Browse the repository at this point in the history
[Cherry Pick] Fix wrong calculation for nodeinfo used
  • Loading branch information
volcano-sh-bot authored May 30, 2019
2 parents 3ab1c80 + 6f6798c commit 0b3cce9
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 @@ -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 {
Expand Down

0 comments on commit 0b3cce9

Please sign in to comment.