mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-30 04:22:22 +02:00
Add lost pulses statistics
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user