mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-10-26 18:51:27 +01:00
Fix lost pulse ids statistics
This commit is contained in:
1 parent
df59a8a72f
commit
43d608d833
1 file changed
+4
-1
@@ -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