Browse Source

* f2b-filter-stats : tune output

master
Alex 'AdUser' Z 4 years ago
parent
commit
02f742e436
  1. 6
      src/filter-test.c

6
src/filter-test.c

@ -69,12 +69,10 @@ int main(int argc, char *argv[]) {
while (fgets(line, sizeof(line), file) != NULL) { while (fgets(line, sizeof(line), file) != NULL) {
read++; read++;
fputs(line, stdout);
if ((ftag = f2b_filter_match(filter, line, match, sizeof(match), &score)) > 0) { if ((ftag = f2b_filter_match(filter, line, match, sizeof(match), &score)) > 0) {
matched++; matched++;
fprintf(stdout, "+ %s (score: %d, tag: %08X)\n", match, score, ftag); fprintf(stdout, "# match -- addr: %s, score: %d, tag: %08X\n", match, score, ftag);
continue;
} else {
fprintf(stdout, "- (no-match): %s", line);
} }
} }
fclose(file); fclose(file);

Loading…
Cancel
Save