From: Vsevolod Stakhov Date: Fri, 22 Jan 2016 13:38:49 +0000 (+0000) Subject: Increase number of messages learned X-Git-Tag: 1.1.2~80 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e0e7601c62ed7f06b4cc47288a29e77f87a49d59;p=rspamd.git Increase number of messages learned Issue: #492 Reported by: @mnik247 --- 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; }