Actually fixed this time
This commit is contained in:
1 parent
c09c4be2e5
commit
68334c9ccb
1 file changed
+1
-1
+1
-1
@@ -395,7 +395,7 @@ def select_workload(machine, tests, variance=0.25):
|
||||
# No test has less than (1-variance)% of its deserved resources, and
|
||||
# therefore we may have this machine repeat its existing workload again
|
||||
ideal_ratio = sum(table.values()) / sum([x.throughput for x in tests])
|
||||
if min(ratios) / ideal_ratio < 1 - variance:
|
||||
if min(ratios) / ideal_ratio > 1 - variance:
|
||||
return machine.workload
|
||||
|
||||
# Fallback to simply doing the least attention given test
|
||||
|
||||
Reference in new issue
Block a user