aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-17 10:57:51 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-17 10:57:51 +0200
commit9f09681adda2b76ab08c96548bac2384ed8eae4d (patch)
tree3ec82b7f224105e2358a70b4f694128494218565 /src
parent7d08079131f01b9e0cddc81c0e42e18ec8fa63f8 (diff)
downloaddabmod-9f09681adda2b76ab08c96548bac2384ed8eae4d.tar.gz
dabmod-9f09681adda2b76ab08c96548bac2384ed8eae4d.tar.bz2
dabmod-9f09681adda2b76ab08c96548bac2384ed8eae4d.zip
Set UHD printout of timestamps to std::fixed
Diffstat (limited to 'src')
-rw-r--r--src/OutputUHD.cpp6
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 <<