]> source.dussan.org Git - rspamd.git/commitdiff
Show learned counter.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 25 Sep 2015 12:47:56 +0000 (13:47 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 25 Sep 2015 12:47:56 +0000 (13:47 +0100)
Issue: #383

src/controller.c

index 4fcc729962036278fe7383a648f1071f5197b6fa..04c72e8b7f1e958fdaa71ac3913b8498cbcbd177 100644 (file)
@@ -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++) {