diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-25 13:47:56 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-25 13:47:56 +0100 |
commit | 4bf41bd8729aac7c1aa48057d1afed3686d323cd (patch) | |
tree | 440f7dacffa762cb119dbdf34df522605ecd2d74 | |
parent | 8dc04e1bf4d48dd5af65590455deac338cf67f6c (diff) | |
download | rspamd-4bf41bd8729aac7c1aa48057d1afed3686d323cd.tar.gz rspamd-4bf41bd8729aac7c1aa48057d1afed3686d323cd.zip |
Show learned counter.
Issue: #383
-rw-r--r-- | src/controller.c | 3 |
1 files changed, 3 insertions, 0 deletions
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++) { |