aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-07-08 12:03:14 -0700
committerJosh Blum <josh@joshknows.com>2011-07-08 12:03:14 -0700
commit948a5fd05285f602292f9b8ed9a2a5734f127d75 (patch)
tree50824ef2001cb9968ed41b5e3b0d4cde7f13d812
parent54229a06d1e4c05158ef9517fd61e61204363ed6 (diff)
downloaduhd-948a5fd05285f602292f9b8ed9a2a5734f127d75.tar.gz
uhd-948a5fd05285f602292f9b8ed9a2a5734f127d75.tar.bz2
uhd-948a5fd05285f602292f9b8ed9a2a5734f127d75.zip
uhd: benchmark example will print help if no rate specified
-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 db9932740..774b240d4 100644
--- a/host/examples/benchmark_rate.cpp
+++ b/host/examples/benchmark_rate.cpp
@@ -178,7 +178,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
po::notify(vm);
//print the help message
- if (vm.count("help")){
+ if (vm.count("help") or (vm.count("rx_rate") + vm.count("tx_rate")) == 0){
std::cout << boost::format("UHD Benchmark Rate %s") % desc << std::endl;
std::cout <<
" Specify --rx_rate for a receive-only test.\n"