From e16eb77aafd8e914806fa5c3cdfbaf47a621f854 Mon Sep 17 00:00:00 2001 From: Moray Grieve Date: Wed, 11 Dec 2024 15:51:35 +0000 Subject: [PATCH] Overlap needs to be greater than 1 --- tests/ten/ten_per_006/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ten/ten_per_006/run.py b/tests/ten/ten_per_006/run.py index db2245d1..7dd0bca9 100644 --- a/tests/ten/ten_per_006/run.py +++ b/tests/ten/ten_per_006/run.py @@ -126,7 +126,7 @@ def process_throughput(self, num_clients, out_dir): # reduce to the overlap and find best zero gradient fit min, max = self.find_overlap(list_client_times) included = [i for i in range(min, max+1, 1)] - if len(included) > 0: + if len(included) > 1: bins_steady = {key: value for key, value in bins.items() if key in included} bins_ramp = {key: value for key, value in bins.items() if key not in included} throughput = float(sum(bins_steady.values())) / float((included[-1] - included[0]))