diff --git a/OpenBench/utils.py b/OpenBench/utils.py index 995d4ef..6f89a90 100644 --- a/OpenBench/utils.py +++ b/OpenBench/utils.py @@ -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