mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-22 09:24:35 +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_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) {
|
||||
cout << "device_name " << device_name;
|
||||
|
||||
Reference in New Issue
Block a user