From 7d2ba938a719b68e5e464432a874d2b45da1f729 Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Wed, 21 Aug 2019 11:25:58 -0700 Subject: python: Fixup bmark_rate printed statistics - When printing statistics, the number of TX and RX timeouts were mixed up. - Fixing main() docstring Fixes e735a63ff9e ("python: Adding Python API benchmark rate") --- host/examples/python/benchmark_rate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'host/examples/python/benchmark_rate.py') diff --git a/host/examples/python/benchmark_rate.py b/host/examples/python/benchmark_rate.py index 67ba0b9e9..67b9c1e02 100755 --- a/host/examples/python/benchmark_rate.py +++ b/host/examples/python/benchmark_rate.py @@ -354,13 +354,13 @@ def print_statistics(rx_statistics, tx_statistics, tx_async_statistics): rx_statistics.get("num_rx_seqerr", 0), tx_async_statistics.get("num_tx_underrun", 0), rx_statistics.get("num_rx_late", 0), - rx_statistics.get("num_rx_timeouts", 0), - tx_async_statistics.get("num_tx_timeouts", 0)) + tx_async_statistics.get("num_tx_timeouts", 0), + rx_statistics.get("num_rx_timeouts", 0)) logger.info(statistics_msg) def main(): - """RX samples and write to file""" + """Run the benchmarking tool""" args = parse_args() # Setup some argument parsing if not (args.rx_rate or args.tx_rate): -- cgit v1.2.3