aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputUHD.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-27 16:36:49 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-27 16:36:49 +0100
commit42aaf8384b239f2e632a4ef042f24d4c9b7dac35 (patch)
tree98ad5e304685f320694907156545198cefaf312d /src/OutputUHD.cpp
parent3f36268768419eb5891be941565ff496ab27674e (diff)
downloaddabmod-42aaf8384b239f2e632a4ef042f24d4c9b7dac35.tar.gz
dabmod-42aaf8384b239f2e632a4ef042f24d4c9b7dac35.tar.bz2
dabmod-42aaf8384b239f2e632a4ef042f24d4c9b7dac35.zip
Fix TIST usage for EDI input
Diffstat (limited to 'src/OutputUHD.cpp')
-rw-r--r--src/OutputUHD.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/OutputUHD.cpp b/src/OutputUHD.cpp
index e204b75..d26ce77 100644
--- a/src/OutputUHD.cpp
+++ b/src/OutputUHD.cpp
@@ -684,7 +684,7 @@ void UHDWorker::handle_frame(const struct UHDWorkerFrameData *frame)
uint32_t expected_sec = last_tx_second + increment / 16384000ul;
uint32_t expected_pps = last_tx_pps + increment % 16384000ul;
- while (expected_pps > 16384000) {
+ while (expected_pps >= 16384000) {
expected_sec++;
expected_pps -= 16384000;
}
@@ -693,10 +693,12 @@ void UHDWorker::handle_frame(const struct UHDWorkerFrameData *frame)
expected_pps != tx_pps) {
etiLog.level(warn) << "OutputUHD: timestamp irregularity!" <<
std::fixed <<
- " Expected " << expected_sec << "+" <<
- (double)expected_pps/16384000.0 <<
- " Got " << tx_second << "+" <<
- (double)tx_pps/16384000.0;
+ " Expected " <<
+ expected_sec << "+" << (double)expected_pps/16384000.0 <<
+ "(" << expected_pps << ")" <<
+ " Got " <<
+ tx_second << "+" << (double)tx_pps/16384000.0 <<
+ "(" << tx_pps << ")";
timestamp_discontinuity = true;
}