From a6ca4778f8ae05b7f24e8c64bd58d7f39b3a9c14 Mon Sep 17 00:00:00 2001 From: Philip Balister Date: Sun, 12 Jun 2011 18:09:59 -0700 Subject: usrp-e-timed : Fix stupid typo in tx rate calculation. --- host/usrp_e_utils/usrp-e-timed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- cgit v1.2.3