Actually fixed this time

This commit is contained in:
Andrew Grant committed 2022-05-20 12:42:35 -04:00
1 parent c09c4be2e5
commit 68334c9ccb
1 file changed
+1 -1
+1 -1
View File
@@ -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