From dbf8e9d8a29b9232422c3c9ffb7a25125fdd0166 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 14 Jan 2018 07:53:54 +0100 Subject: UHD: fix print of late packets and underruns --- TODO | 2 ++ src/output/UHD.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3