Skip to content

Commit

Permalink
Merge pull request #482 from wangyuqing4/overused
Browse files Browse the repository at this point in the history
fix proportion OverusedFn
  • Loading branch information
k82cn authored Oct 16, 2019
2 parents 06e4a82 + 496cae5 commit dab3f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scheduler/plugins/proportion/proportion.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func (pp *proportionPlugin) OnSessionOpen(ssn *framework.Session) {
queue := obj.(*api.QueueInfo)
attr := pp.queueOpts[queue.UID]

overused := attr.deserved.LessEqual(attr.allocated)
overused := !attr.allocated.LessEqual(attr.deserved)
if overused {
glog.V(3).Infof("Queue <%v>: deserved <%v>, allocated <%v>, share <%v>",
queue.Name, attr.deserved, attr.allocated, attr.share)
Expand Down

0 comments on commit dab3f6e

Please sign in to comment.