From: Vsevolod Stakhov Date: Fri, 18 Oct 2019 19:04:12 +0000 (+0100) Subject: [Minor] Oops, fix misprint X-Git-Tag: 2.1~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8487c81d43c47ddd849843f1f499fe4b352d11ae;p=rspamd.git [Minor] Oops, fix misprint --- 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