diff options
Diffstat (limited to 'src/client/rspamc.c')
-rw-r--r-- | src/client/rspamc.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c index efd44c04f..96be01b70 100644 --- a/src/client/rspamc.c +++ b/src/client/rspamc.c @@ -730,8 +730,34 @@ rspamc_stat_output (ucl_object_t *obj) rspamd_printf_gstring (out, "Fuzzy hashes expired: %L\n", ucl_object_toint (ucl_object_find_key (obj, "fuzzy_expired"))); + st = ucl_object_find_key (obj, "fuzzy_checked"); + if (st != NULL && ucl_object_type (st) == UCL_ARRAY) { + rspamd_printf_gstring (out, "Fuzzy hashes checked: "); + iter = NULL; + + while ((cur = ucl_iterate_object (st, &iter, true)) != NULL) { + rspamd_printf_gstring (out, "%hL ", ucl_object_toint (cur)); + } + + rspamd_printf_gstring (out, "\n"); + } + + st = ucl_object_find_key (obj, "fuzzy_found"); + if (st != NULL && ucl_object_type (st) == UCL_ARRAY) { + rspamd_printf_gstring (out, "Fuzzy hashes found: "); + iter = NULL; + + while ((cur = ucl_iterate_object (st, &iter, true)) != NULL) { + rspamd_printf_gstring (out, "%hL ", ucl_object_toint (cur)); + } + + rspamd_printf_gstring (out, "\n"); + } + st = ucl_object_find_key (obj, "statfiles"); if (st != NULL && ucl_object_type (st) == UCL_ARRAY) { + iter = NULL; + while ((cur = ucl_iterate_object (st, &iter, true)) != NULL) { rspamc_stat_statfile (cur, out); } |