diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-10-17 17:26:14 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-10-17 17:26:14 -0700 |
commit | d172b44f157a1429de69599cf0a06aa61fa7a274 (patch) | |
tree | 239d6edf32ac2ca18eed392ce0ee090bdfb4c1ab /host/examples | |
parent | 1b70b3e70df40aae4d1e53037212d77af2fdc4e4 (diff) | |
parent | 9e73914791be936216ea11eea9bd38061ef5f323 (diff) | |
download | uhd-d172b44f157a1429de69599cf0a06aa61fa7a274.tar.gz uhd-d172b44f157a1429de69599cf0a06aa61fa7a274.tar.bz2 uhd-d172b44f157a1429de69599cf0a06aa61fa7a274.zip |
Merge branch 'maint'
Diffstat (limited to 'host/examples')
-rw-r--r-- | host/examples/rx_samples_c.c | 4 | ||||
-rw-r--r-- | host/examples/tx_samples_c.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/host/examples/rx_samples_c.c b/host/examples/rx_samples_c.c index 0ecb89153..d269e29b7 100644 --- a/host/examples/rx_samples_c.c +++ b/host/examples/rx_samples_c.c @@ -233,9 +233,9 @@ int main(int argc, char* argv[]) time_t full_secs; double frac_secs; uhd_rx_metadata_time_spec(md, &full_secs, &frac_secs); - fprintf(stderr, "Received packet: %zu samples, %zu full secs, %f frac secs\n", + fprintf(stderr, "Received packet: %zu samples, %.f full secs, %f frac secs\n", num_rx_samps, - full_secs, + difftime(full_secs, (time_t) 0), frac_secs); } diff --git a/host/examples/tx_samples_c.c b/host/examples/tx_samples_c.c index 3c3fcc8fe..f04d4b26c 100644 --- a/host/examples/tx_samples_c.c +++ b/host/examples/tx_samples_c.c @@ -206,7 +206,7 @@ int main(int argc, char* argv[]){ // Actual streaming uint64_t num_acc_samps = 0; - uint64_t num_samps_sent = 0; + size_t num_samps_sent = 0; while(1) { if (stop_signal_called) break; |