Skip to content

Commit

Permalink
Fixed regression introduced in 8f570c, which caused duplicate counts …
Browse files Browse the repository at this point in the history
…upon restoring from disk.

Fixes #2667
  • Loading branch information
allinurl committed May 14, 2024
1 parent b45ab0d commit c6199f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1982,6 +1982,7 @@ read_line (GLog *glog, char *line, int *test, uint32_t *cnt, int dry_run) {
uncount_invalid (glog);
return NULL;
}
glog->read++;

return logitem;
}
Expand Down Expand Up @@ -2104,7 +2105,6 @@ read_lines_from_file (FILE *fp, GLog *glog, GJob jobs[2][conf.jobs], int b, char
while ((*s = fgets (jobs[b][k].lines[jobs[b][k].p], LINE_BUFFER, fp)) != NULL) {
#endif
glog->bytes += strlen (jobs[b][k].lines[jobs[b][k].p]);
glog->read++;

if (++(jobs[b][k].p) >= conf.chunk_size)
break; // goto next chunk
Expand Down

0 comments on commit c6199f6

Please sign in to comment.