summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-11-14 11:15:22 -0800
committerJosh Blum <josh@joshknows.com>2012-11-14 11:15:22 -0800
commit80933a5602e5d40e138807124df50a4289fe580f (patch)
tree06d0343be8c6fd97db678db61af18be258d47a7a /host
parent5d3d9a741c8780ce97d104366ca310be7a6e7d5d (diff)
downloaduhd-80933a5602e5d40e138807124df50a4289fe580f.tar.gz
uhd-80933a5602e5d40e138807124df50a4289fe580f.tar.bz2
uhd-80933a5602e5d40e138807124df50a4289fe580f.zip
examples: fix rx_samples_to_udp bytes vs samples
Diffstat (limited to 'host')
-rw-r--r--host/examples/rx_samples_to_udp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/examples/rx_samples_to_udp.cpp b/host/examples/rx_samples_to_udp.cpp
index 42b80762f..2acaa5d8b 100644
--- a/host/examples/rx_samples_to_udp.cpp
+++ b/host/examples/rx_samples_to_udp.cpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010-2011 Ettus Research LLC
+// Copyright 2010-2012 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -160,7 +160,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
}
//send complex single precision floating point samples over udp
- udp_xport->send(boost::asio::buffer(buff, num_rx_samps));
+ udp_xport->send(boost::asio::buffer(buff, num_rx_samps*sizeof(buff.front())));
num_acc_samps += num_rx_samps;
} done_loop: