aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_process.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-26 17:13:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-26 19:48:30 +0100
commit661f634db96c2c049439b5bd7afae5af232c6ae7 (patch)
tree5cf6992b9afb0eb14324daf20c0df022aa982fd5 /src/libstat/stat_process.c
parent1ca24ef40609f571241fc18151d8c8cc7ef02e78 (diff)
downloadrspamd-661f634db96c2c049439b5bd7afae5af232c6ae7.tar.gz
rspamd-661f634db96c2c049439b5bd7afae5af232c6ae7.zip
[Rework] Remove multiple metrics support from Rspamd
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r--src/libstat/stat_process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index f5c19e664..74bf89d5f 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -1074,7 +1074,7 @@ rspamd_stat_check_autolearn (struct rspamd_task *task)
* - We learn spam if action is ACTION_REJECT
* - We learn ham if score is less than zero
*/
- mres = g_hash_table_lookup (task->results, DEFAULT_METRIC);
+ mres = task->result;
if (mres) {
@@ -1117,7 +1117,7 @@ rspamd_stat_check_autolearn (struct rspamd_task *task)
spam_score = t;
}
- mres = g_hash_table_lookup (task->results, DEFAULT_METRIC);
+ mres = task->result;
if (mres) {
if (mres->score >= spam_score) {