From 34dde750c2bfcc5c87c9caea2e5ad015e82a9cd9 Mon Sep 17 00:00:00 2001 From: Leonard Yu Date: Tue, 13 Dec 2022 17:09:55 +0100 Subject: [PATCH] fix(2544): Fix binary search in per source mode Reference Issue Numbers: #5 --- plugin2544/plugin/tc_throughput.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin2544/plugin/tc_throughput.py b/plugin2544/plugin/tc_throughput.py index ec32b16..9cef0d7 100644 --- a/plugin2544/plugin/tc_throughput.py +++ b/plugin2544/plugin/tc_throughput.py @@ -119,7 +119,7 @@ def get_initial_boundaries( if throughput_conf.rate_iteration_options.result_scope.is_per_source_port: return [ ThroughputBoutEntry(throughput_conf, [port_struct]) - for port_struct in resources.port_structs + for port_struct in resources.tx_ports ] else: return [ThroughputBoutEntry(throughput_conf, resources.port_structs)]