From 68334c9ccbec49f4097c046ec0c34ef113b80b7c Mon Sep 17 00:00:00 2001 From: Andrew Grant Date: Fri, 20 May 2022 12:42:35 -0400 Subject: [PATCH] Actually fixed this time --- OpenBench/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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