aboutsummaryrefslogtreecommitdiffstats
path: root/src
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 /src
parent9f862c4300018a1f6eb218746ec8131275455875 (diff)
downloaddabmod-dbf8e9d8a29b9232422c3c9ffb7a25125fdd0166.tar.gz
dabmod-dbf8e9d8a29b9232422c3c9ffb7a25125fdd0166.tar.bz2
dabmod-dbf8e9d8a29b9232422c3c9ffb7a25125fdd0166.zip
UHD: fix print of late packets and underruns
Diffstat (limited to 'src')
-rw-r--r--src/output/UHD.cpp3
1 files changed, 2 insertions, 1 deletions
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;