PR#2978: Don't take new tasks if we've 0.0 capacity available
Merges #2978 https://pagure.io/koji/pull-request/2978
This commit is contained in:
commit
5e9ca9366a
1 changed files with 1 additions and 1 deletions
|
|
@ -981,7 +981,7 @@ class TaskManager(object):
|
|||
|
||||
# determine our normalized bin rank
|
||||
for pos, cap in enumerate(bin_avail):
|
||||
if our_avail >= cap:
|
||||
if our_avail > cap:
|
||||
break
|
||||
if len(bin_avail) > 1:
|
||||
rank = float(pos) / (len(bin_avail) - 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue