]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix misprint 3120/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 24 Oct 2019 17:48:16 +0000 (20:48 +0300)
committerGitHub <noreply@github.com>
Thu, 24 Oct 2019 17:48:16 +0000 (20:48 +0300)
src/plugins/lua/neural.lua

index faeb664126cabe2e645d13a74a589bf39c999814..cb3a5130003a125d3e56126814f0739359176a3e 100644 (file)
@@ -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