aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-25 13:47:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-25 13:47:56 +0100
commit4bf41bd8729aac7c1aa48057d1afed3686d323cd (patch)
tree440f7dacffa762cb119dbdf34df522605ecd2d74 /src/controller.c
parent8dc04e1bf4d48dd5af65590455deac338cf67f6c (diff)
downloadrspamd-4bf41bd8729aac7c1aa48057d1afed3686d323cd.tar.gz
rspamd-4bf41bd8729aac7c1aa48057d1afed3686d323cd.zip
Show learned counter.
Issue: #383
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c3
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++) {