aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-21 18:39:59 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-21 18:39:59 +0100
commit40071fa8499384b0edf8084e4abae4113c0b8ddc (patch)
tree495997ce54b8f9e202115510120b0ca1916d2b0e /src/client
parent1c1c24134f686bde50725cc04e1daa808245b08c (diff)
downloadrspamd-40071fa8499384b0edf8084e4abae4113c0b8ddc.tar.gz
rspamd-40071fa8499384b0edf8084e4abae4113c0b8ddc.zip
Show fuzzy checked statistics in the client.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/rspamc.c26
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);
}