commit c78ea25: [Minor] Fix misprint

GitHub noreply at github.com
Fri Oct 25 07:14:05 UTC 2019


Author: Alexander Moisseev
Date: 2019-10-24 20:48:16 +0300
URL: https://github.com/rspamd/rspamd/commit/c78ea25454a1222132833f927ac6fbe3a0f1ac9a (refs/pull/3120/head)

[Minor] Fix misprint

---
 src/plugins/lua/neural.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


More information about the Commits mailing list