From e0e7601c62ed7f06b4cc47288a29e77f87a49d59 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 22 Jan 2016 13:38:49 +0000 Subject: [PATCH] Increase number of messages learned Issue: #492 Reported by: @mnik247 --- src/libstat/stat_process.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index e9324d2ca..8de362002 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -598,6 +598,8 @@ rspamd_stat_backends_post_learn (struct rspamd_stat_ctx *st_ctx, } } + g_atomic_int_add (&task->worker->srv->stat->messages_learned, 1); + return res; } -- 2.39.5