aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2018-09-11 15:35:39 -0700
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-09-12 09:59:55 -0700
commit680855e85a63434d7df23df4a051d2ce2f5f470d (patch)
tree08b18519788e0a81b28403ff8db568f1d6bd69af /host/examples
parent7d0152ed1c14732a9f00467f47630403b8370cac (diff)
downloaduhd-680855e85a63434d7df23df4a051d2ce2f5f470d.tar.gz
uhd-680855e85a63434d7df23df4a051d2ce2f5f470d.tar.bz2
uhd-680855e85a63434d7df23df4a051d2ce2f5f470d.zip
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")
Diffstat (limited to 'host/examples')
-rwxr-xr-xhost/examples/python/benchmark_rate.py2
1 files changed, 1 insertions, 1 deletions
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!")