commit 8487c81: [Minor] Oops, fix misprint

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Oct 18 19:07:07 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-10-18 20:04:12 +0100
URL: https://github.com/rspamd/rspamd/commit/8487c81d43c47ddd849843f1f499fe4b352d11ae (HEAD -> master)

[Minor] Oops, 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 e6ffe41be..049815099 100644
--- a/src/plugins/lua/neural.lua
+++ b/src/plugins/lua/neural.lua
@@ -126,7 +126,7 @@ local redis_lua_script_can_store_train_vec = [[
     end
   else
     if nham <= lim then
-      if nsham > nspam then
+      if nham > nspam then
         -- Apply sampling
         local skip_rate = 1.0 - nspam / (nham + 1)
         if math.random() < skip_rate then


More information about the Commits mailing list