diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-17 10:57:51 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-17 10:57:51 +0200 |
commit | 9f09681adda2b76ab08c96548bac2384ed8eae4d (patch) | |
tree | 3ec82b7f224105e2358a70b4f694128494218565 | |
parent | 7d08079131f01b9e0cddc81c0e42e18ec8fa63f8 (diff) | |
download | dabmod-9f09681adda2b76ab08c96548bac2384ed8eae4d.tar.gz dabmod-9f09681adda2b76ab08c96548bac2384ed8eae4d.tar.bz2 dabmod-9f09681adda2b76ab08c96548bac2384ed8eae4d.zip |
Set UHD printout of timestamps to std::fixed
-rw-r--r-- | src/OutputUHD.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/OutputUHD.cpp b/src/OutputUHD.cpp index c7e9fac..4d51dc4 100644 --- a/src/OutputUHD.cpp +++ b/src/OutputUHD.cpp @@ -690,9 +690,10 @@ void UHDWorker::handle_frame(const struct UHDWorkerFrameData *frame) if (expected_sec != tx_second or expected_pps != tx_pps) { etiLog.level(warn) << "OutputUHD: timestamp irregularity!" << - " Expected " << expected_sec << "+" << + std::fixed << + " Expected " << expected_sec << "+" << (double)expected_pps/16384000.0 << - " Got " << tx_second << "+" << + " Got " << tx_second << "+" << (double)tx_pps/16384000.0; timestamp_discontinuity = true; @@ -712,6 +713,7 @@ void UHDWorker::handle_frame(const struct UHDWorkerFrameData *frame) if (md.time_spec.get_real_secs() + tx_timeout < usrp_time) { etiLog.level(warn) << "OutputUHD: Timestamp in the past! offset: " << + std::fixed << md.time_spec.get_real_secs() - usrp_time << " (" << usrp_time << ")" " frame " << frame->ts.fct << |