Add lost pulses statistics

This commit is contained in:
2020-06-09 13:16:26 +02:00
parent 71de5c5db0
commit b189d5ab34
+5 -1
View File
@@ -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();
}