summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-05-23 12:58:58 +0000
committerPhilip Balister <philip@opensdr.com>2010-05-23 12:58:58 +0000
commitf113ae17863729f05b6ada815b9817cd16001211 (patch)
tree868dca9346b8c96f528e4591715412281511abf9
parent85e32e298217a16102d25a455d605c55a05e369c (diff)
downloaduhd-f113ae17863729f05b6ada815b9817cd16001211.tar.gz
uhd-f113ae17863729f05b6ada815b9817cd16001211.tar.bz2
uhd-f113ae17863729f05b6ada815b9817cd16001211.zip
Divide by 4 to convert byts/sec to samples/sec. Multiply by 4 is right out.
-rw-r--r--host/apps/omap_debug/usrp-e-loopback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/apps/omap_debug/usrp-e-loopback.c b/host/apps/omap_debug/usrp-e-loopback.c
index 798bc4b45..177394947 100644
--- a/host/apps/omap_debug/usrp-e-loopback.c
+++ b/host/apps/omap_debug/usrp-e-loopback.c
@@ -86,7 +86,7 @@ static void *read_thread(void *threadid)
elapsed_seconds = finish_time.tv_sec - start_time.tv_sec;
printf("RX data transfer rate = %f K Samples/second\n",
- (float) bytes_transfered / (float) elapsed_seconds / 250);
+ (float) bytes_transfered / (float) elapsed_seconds / 4000);
start_time = finish_time;