Commit 2fe17105 authored by Federico Vaga's avatar Federico Vaga

tools: handle seq overflow during test mode 1

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 68d63acc
......@@ -181,7 +181,7 @@ static int tstamp_testing_mode_1(struct fmctdc_time *ts, unsigned int n)
for (i = 0; i < n; ts_prev = ts[i], ++i) {
if (ts_prev.seq_id == -1)
continue;
if (ts_prev.seq_id + 1 != ts[i].seq_id) {
if (ts_prev.seq_id + 1 != ts[i].seq_id && ts[i].seq_id != 0) {
fprintf(stderr,
"*** Invalid sequence number. Previous %d, current %d, expected +1\n",
ts_prev.seq_id, ts[i].seq_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment