mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-06-06 20:28:41 +02:00
Fix lost pulse ids statistics
This commit is contained in:
@@ -108,7 +108,10 @@ int main (int argc, char *argv[]) {
|
|||||||
n_frames_with_missing_packets++;
|
n_frames_with_missing_packets++;
|
||||||
}
|
}
|
||||||
|
|
||||||
n_missed_frames += (pulse_id - last_pulse_id) - 1;
|
if (last_pulse_id>0) {
|
||||||
|
n_missed_frames += (pulse_id - last_pulse_id) - 1;
|
||||||
|
}
|
||||||
|
last_pulse_id = pulse_id;
|
||||||
|
|
||||||
if (n_stat_out == 500) {
|
if (n_stat_out == 500) {
|
||||||
cout << "device_name " << device_name;
|
cout << "device_name " << device_name;
|
||||||
|
|||||||
Reference in New Issue
Block a user