From: Alexander Moisseev Date: Thu, 24 Oct 2019 17:48:16 +0000 (+0300) Subject: [Minor] Fix misprint X-Git-Tag: 2.1~28^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3120%2Fhead;p=thirdparty%2Frspamd.git [Minor] Fix misprint --- diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua index faeb664126..cb3a513000 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