mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-19 20:59:02 +02:00
builders: Correct bonus application
The bonus is applied to the start time and needs to make the build appear as if it started earlier than it did since earlier builds are prioritised. This means the bonus should be subtracted, not added. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
e21c1123a2
commit
17c7b35155
|
@ -204,7 +204,8 @@ def prioritizeBuilders(master, builders):
|
|||
time = max_time
|
||||
else:
|
||||
if bldr.name in builder_bonuses:
|
||||
time = time + builder_bonuses[bldr.name]
|
||||
time = time - builder_bonuses[bldr.name]
|
||||
|
||||
defer.returnValue((time, bldr))
|
||||
|
||||
transformed = yield defer.gatherResults(
|
||||
|
|
Loading…
Reference in New Issue
Block a user