aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-14 07:53:54 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-14 07:53:54 +0100
commitdbf8e9d8a29b9232422c3c9ffb7a25125fdd0166 (patch)
tree8b63eb1db2a7aedb57022937cc7ccf99d61758ff
parent9f862c4300018a1f6eb218746ec8131275455875 (diff)
downloaddabmod-dbf8e9d8a29b9232422c3c9ffb7a25125fdd0166.tar.gz
dabmod-dbf8e9d8a29b9232422c3c9ffb7a25125fdd0166.tar.bz2
dabmod-dbf8e9d8a29b9232422c3c9ffb7a25125fdd0166.zip
UHD: fix print of late packets and underruns
-rw-r--r--TODO2
-rw-r--r--src/output/UHD.cpp3
2 files changed, 4 insertions, 1 deletions
diff --git a/TODO b/TODO
index eeadd6d..5269614 100644
--- a/TODO
+++ b/TODO
@@ -27,6 +27,8 @@ Clean up and separate GPS and refclk checks.
Add antenna selection to config.
+Test RC entries.
+
Portability: replace clock_gettime with std::chrono
*done* Make an abstraction for the DPD feedback server, use it for Soapy and UHD.
diff --git a/src/output/UHD.cpp b/src/output/UHD.cpp
index b5c3ae3..833d981 100644
--- a/src/output/UHD.cpp
+++ b/src/output/UHD.cpp
@@ -469,7 +469,8 @@ void UHD::print_async_thread()
"OutputUHD status (usrp time: %f): "
"%d underruns and %d late packets since last status.\n",
usrp_time,
- num_underflows, num_late_packets);
+ num_underflows - num_underflows_previous,
+ num_late_packets - num_late_packets_previous);
}
num_underflows_previous = num_underflows;