From 680855e85a63434d7df23df4a051d2ce2f5f470d Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Tue, 11 Sep 2018 15:35:39 -0700 Subject: python: Fix duration of benchmark rate Duration of multichannel benchmark was 50 seconds longer than intended- a 50ms initialization delay was mistakenly multiplied by 1000. Fixes e735a63ff9e ("python: Adding Python API benchmark rate") --- host/examples/python/benchmark_rate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/examples/python') diff --git a/host/examples/python/benchmark_rate.py b/host/examples/python/benchmark_rate.py index b89ec4d91..67ba0b9e9 100755 --- a/host/examples/python/benchmark_rate.py +++ b/host/examples/python/benchmark_rate.py @@ -454,7 +454,7 @@ def main(): # Sleep for the required duration # If we have a multichannel test, add some time for initialization if len(rx_channels) > 1 or len(tx_channels) > 1: - args.duration += INIT_DELAY * 1000 + args.duration += INIT_DELAY time.sleep(args.duration) # Interrupt and join the threads logger.debug("Sending signal to stop!") -- cgit v1.2.3