|
|
@ -183,6 +183,7 @@ f2b_filter_stats(f2b_filter_t *filter, char *res, size_t ressize) { |
|
|
|
const char *fmt = |
|
|
|
const char *fmt = |
|
|
|
"- pattern: %s\n" |
|
|
|
"- pattern: %s\n" |
|
|
|
" matches: %d\n"; |
|
|
|
" matches: %d\n"; |
|
|
|
|
|
|
|
res[0] = '\0'; |
|
|
|
while (filter->stats(filter->cfg, &matches, &pattern, reset)) { |
|
|
|
while (filter->stats(filter->cfg, &matches, &pattern, reset)) { |
|
|
|
snprintf(buf, sizeof(buf), fmt, pattern, matches); |
|
|
|
snprintf(buf, sizeof(buf), fmt, pattern, matches); |
|
|
|
strlcat(res, buf, ressize); |
|
|
|
strlcat(res, buf, ressize); |
|
|
|