aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/examples/rx_samples_c.c4
1 files changed, 2 insertions, 2 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);
}