[yocto-autobuilder2][PATCH] builders.py: subtract builder weight instead of add


Trevor Gamblin
 

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
---
builders.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/builders.py b/builders.py
index f94d1dd..fc92e36 100644
--- a/builders.py
+++ b/builders.py
@@ -168,7 +168,7 @@ 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(
--
2.31.1

Join yocto@lists.yoctoproject.org to automatically receive all group messages.