From b189d5ab343e5fdd34e85c8eba2d9c1a24758d0f Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Tue, 9 Jun 2020 13:16:26 +0200 Subject: [PATCH] Add lost pulses statistics --- sf-stream/src/LiveRecvModule.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sf-stream/src/LiveRecvModule.cpp b/sf-stream/src/LiveRecvModule.cpp index 0b5ce79..264dc21 100644 --- a/sf-stream/src/LiveRecvModule.cpp +++ b/sf-stream/src/LiveRecvModule.cpp @@ -46,7 +46,11 @@ void LiveRecvModule::receive_thread() auto meta = queue_.get_metadata_buffer(slot_id); auto data = queue_.get_data_buffer(slot_id); - receiver_.get_next_image(meta, data); + auto n_lost_pulses = receiver_.get_next_image(meta, data); + + if (n_lost_pulses > 0) { + cout << "sf_stream:sync_lost_pulses " << n_lost_pulses << endl; + } queue_.commit(); }