diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2019-08-21 11:25:58 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-08-21 16:36:37 -0700 |
commit | 7d2ba938a719b68e5e464432a874d2b45da1f729 (patch) | |
tree | 5e2a696c4a7f6255220ac43fefc24460beea990a | |
parent | f7a3f61f53832d8c043ca3dcf7517d08a9ec376c (diff) | |
download | uhd-7d2ba938a719b68e5e464432a874d2b45da1f729.tar.gz uhd-7d2ba938a719b68e5e464432a874d2b45da1f729.tar.bz2 uhd-7d2ba938a719b68e5e464432a874d2b45da1f729.zip |
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")
-rwxr-xr-x | host/examples/python/benchmark_rate.py | 6 |
1 files changed, 3 insertions, 3 deletions
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): |