aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-06 14:18:43 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-06 14:18:43 +0100
commit720a4169fbda4f1f0a8a2ac6898a578b9aaa5a46 (patch)
tree5dbb4d7e51c4ec1c12d550c86ef0fafb205ff0d5 /src/plugins/lua
parent5914c4fd04c2c35041d530625784a2f86675fa6b (diff)
downloadrspamd-720a4169fbda4f1f0a8a2ac6898a578b9aaa5a46.tar.gz
rspamd-720a4169fbda4f1f0a8a2ac6898a578b9aaa5a46.zip
[Fix] Fix variable in ann module
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/fann_scores.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/fann_scores.lua b/src/plugins/lua/fann_scores.lua
index 2a661bf98..3e4ec2fc5 100644
--- a/src/plugins/lua/fann_scores.lua
+++ b/src/plugins/lua/fann_scores.lua
@@ -159,10 +159,10 @@ local function fann_scores_filter(task)
local symscore = string.format('%.3f', out[1])
rspamd_logger.infox(task, 'fann score: %s', symscore)
- if symscore > 0 then
+ if result > 0 then
task:insert_result(fann_symbol_spam, result, symscore, id)
else
- task:insert_result(fann_symbol_ham, result, -(symscore), id)
+ task:insert_result(fann_symbol_ham, -(result), symscore, id)
end
else
if load_fann(id) then