From 4bf41bd8729aac7c1aa48057d1afed3686d323cd Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 25 Sep 2015 13:47:56 +0100 Subject: [PATCH] Show learned counter. Issue: #383 --- src/controller.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controller.c b/src/controller.c index 4fcc72996..04c72e8b7 100644 --- a/src/controller.c +++ b/src/controller.c @@ -1783,6 +1783,9 @@ rspamd_controller_handle_stat_common ( ucl_object_insert_key (top, ucl_object_fromint ( stat->messages_scanned), "scanned", 0, false); + ucl_object_insert_key (top, ucl_object_fromint ( + stat->messages_learned), "learned", 0, false); + if (stat->messages_scanned > 0) { sub = ucl_object_typed_new (UCL_OBJECT); for (i = METRIC_ACTION_REJECT; i <= METRIC_ACTION_NOACTION; i++) { -- 2.39.5