]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Oops, fix misprint
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 18 Oct 2019 19:04:12 +0000 (20:04 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 18 Oct 2019 19:04:12 +0000 (20:04 +0100)
src/plugins/lua/neural.lua

index e6ffe41bebb11bb10bed90be8b30aed9277e1b8e..04981509917802efbb522f5d6726546143fc0b2f 100644 (file)
@@ -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