Final fix for select_workload()
This commit is contained in:
1 parent
6c749c9316
commit
345b9bfd6a
1 file changed
+1
-1
+1
-1
@@ -565,7 +565,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([x['cores'] for x in table]) / sum([x['throughput'] for x in table])
|
||||
ideal_ratio = sum([x['cores'] for x in table.values()]) / sum([x['throughput'] for x in table.values()])
|
||||
if min(ratios) / ideal_ratio > 1 - variance:
|
||||
return OpenBench.models.Test.objects(id=machine.workload)
|
||||
|
||||
|
||||
Reference in new issue
Block a user