aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2019-10-24 20:48:16 +0300
committerGitHub <noreply@github.com>2019-10-24 20:48:16 +0300
commitc78ea25454a1222132833f927ac6fbe3a0f1ac9a (patch)
tree50f4f91ab9f599a0dd9e9c62844335c2c70ad0bf /src
parent5e40de9bed1151e8f85c67b21d5d7ce87d6dc014 (diff)
downloadrspamd-c78ea25454a1222132833f927ac6fbe3a0f1ac9a.tar.gz
rspamd-c78ea25454a1222132833f927ac6fbe3a0f1ac9a.zip
[Minor] Fix misprint
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/neural.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua
index faeb66412..cb3a51300 100644
--- a/src/plugins/lua/neural.lua
+++ b/src/plugins/lua/neural.lua
@@ -118,7 +118,7 @@ local redis_lua_script_can_store_train_vec = [[
if nspam > nham then
-- Apply sampling
local skip_rate = 1.0 - nham / (nspam + 1)
- if coun < skip_rate then
+ if coin < skip_rate then
return {tostring(-(nspam)),'sampled out with probability ' .. tostring(skip_rate)}
end
end