Skip to content

Commit

Permalink
Overlap needs to be greater than 1
Browse files Browse the repository at this point in the history
  • Loading branch information
moraygrieve committed Dec 11, 2024
1 parent d410782 commit e16eb77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ten/ten_per_006/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand Down

0 comments on commit e16eb77

Please sign in to comment.