aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-07-22 18:40:32 -0700
committerMartin Braun <martin.braun@ettus.com>2016-07-22 18:40:39 -0700
commitb9c3688d05defd71d7a24e7a750dc8954733ee8b (patch)
tree6da17791ca79b447a4e8751d5d670e5b382750ed
parent8a8b90183b063410350995fcbb04494c3bf0a1bc (diff)
downloaduhd-b9c3688d05defd71d7a24e7a750dc8954733ee8b.tar.gz
uhd-b9c3688d05defd71d7a24e7a750dc8954733ee8b.tar.bz2
uhd-b9c3688d05defd71d7a24e7a750dc8954733ee8b.zip
examples: Fixed unconditional wait for SISO case in benchmark_rate
-rw-r--r--host/examples/benchmark_rate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/examples/benchmark_rate.cpp b/host/examples/benchmark_rate.cpp
index 3d57037d5..aef4a7c25 100644
--- a/host/examples/benchmark_rate.cpp
+++ b/host/examples/benchmark_rate.cpp
@@ -427,7 +427,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
const long usecs = long((duration - secs)*1e6);
boost::this_thread::sleep(boost::posix_time::seconds(secs)
+ boost::posix_time::microseconds(usecs)
- + boost::posix_time::milliseconds(INIT_DELAY * 1000)
+ + boost::posix_time::milliseconds( (channel_nums.size() == 1) ? 0 : (INIT_DELAY * 1000))
);
//interrupt and join the threads