Final fix for select_workload()

This commit is contained in:
andrew committed 2023-06-09 03:09:23 -04:00
1 parent 6c749c9316
commit 345b9bfd6a
1 file changed
+1 -1
+1 -1
View File
@@ -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)