Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Fix wrong calculation for nodeinfo used #860

Merged
merged 1 commit into from
May 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
k82cn marked this conversation as resolved.
Show resolved Hide resolved

for _, task := range ni.Tasks {
if task.Status == Releasing {
Expand Down