Skip to content

Commit

Permalink
Merge pull request #566 from zionwu/fix-reclaim
Browse files Browse the repository at this point in the history
Fix wrong condition for reclaim action
  • Loading branch information
k82cn authored Nov 27, 2019
2 parents f21a227 + 8bae01b commit 3d01b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scheduler/actions/reclaim/reclaim.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (alloc *reclaimAction) Execute(ssn *framework.Session) {
for _, v := range victims {
allRes.Add(v.Resreq)
}
if allRes.Less(resreq) {
if !resreq.LessEqual(allRes) {
klog.V(3).Infof("Not enough resource from victims on Node <%s>.", n.Name)
continue
}
Expand Down

0 comments on commit 3d01b07

Please sign in to comment.