diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-21 12:51:44 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-21 12:51:44 +0100 |
commit | 2fb58cd388add234d3411ec6fbe72eba7b519404 (patch) | |
tree | f4f3a3ba14f7a9504424022a85071c718b7ba872 /src/libstat/stat_process.c | |
parent | f30d092776e45c68c784a3448b110df772430bcf (diff) | |
download | rspamd-2fb58cd388add234d3411ec6fbe72eba7b519404.tar.gz rspamd-2fb58cd388add234d3411ec6fbe72eba7b519404.zip |
Increase messages learned counter.
Issue: #347
Reported by: @bpbp-boop
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r-- | src/libstat/stat_process.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index 505e71ebb..776399fbc 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -764,6 +764,9 @@ rspamd_stat_learn (struct rspamd_task *task, gboolean spam, lua_State *L, g_set_error (err, rspamd_stat_quark (), 500, "message cannot be learned" " for any classifier defined"); } + else { + g_atomic_int_inc (&task->worker->srv->stat->messages_learned); + } return ret; } |