diff options
author | Philip Balister <philip@opensdr.com> | 2011-06-12 18:09:59 -0700 |
---|---|---|
committer | Philip Balister <philip@opensdr.com> | 2011-06-12 18:09:59 -0700 |
commit | a6ca4778f8ae05b7f24e8c64bd58d7f39b3a9c14 (patch) | |
tree | ffa394024f55a3533f422577ec776e83cc1edbaa /host/usrp_e_utils/usrp-e-timed.c | |
parent | f914195053060d4274ea4f9b11589b7e4ef47e40 (diff) | |
download | uhd-a6ca4778f8ae05b7f24e8c64bd58d7f39b3a9c14.tar.gz uhd-a6ca4778f8ae05b7f24e8c64bd58d7f39b3a9c14.tar.bz2 uhd-a6ca4778f8ae05b7f24e8c64bd58d7f39b3a9c14.zip |
usrp-e-timed : Fix stupid typo in tx rate calculation.
Diffstat (limited to 'host/usrp_e_utils/usrp-e-timed.c')
-rw-r--r-- | host/usrp_e_utils/usrp-e-timed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/usrp_e_utils/usrp-e-timed.c b/host/usrp_e_utils/usrp-e-timed.c index 06dfdf512..407564429 100644 --- a/host/usrp_e_utils/usrp-e-timed.c +++ b/host/usrp_e_utils/usrp-e-timed.c @@ -273,7 +273,7 @@ static void *write_thread(void *threadid) d_time = delta_time(finish_time, start_time); - elapsed_seconds = (float)d_time.tv_sec - ((float)d_time.tv_usec * 1e-6f); + elapsed_seconds = (float)d_time.tv_sec + ((float)d_time.tv_usec * 1e-6f); printf("Bytes transfered = %ld, elapsed seconds = %f\n", bytes_transfered, elapsed_seconds); printf("TX data transfer rate = %f K Samples/second\n", |