From: Vsevolod Stakhov Date: Fri, 25 Sep 2015 12:47:56 +0000 (+0100) Subject: Show learned counter. X-Git-Tag: 1.0.3~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bf41bd8729aac7c1aa48057d1afed3686d323cd;p=thirdparty%2Frspamd.git Show learned counter. Issue: #383 --- diff --git a/src/controller.c b/src/controller.c index 4fcc729962..04c72e8b7f 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++) {