]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Neural: Remove 10% margin
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 18 Oct 2019 16:14:43 +0000 (17:14 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 18 Oct 2019 16:14:43 +0000 (17:14 +0100)
src/plugins/lua/neural.lua

index 7acb0eca3ed404567f84d06e4b5192d8e654cb38..1ff1f40d71c159885371325177333bb3d6a5172a 100644 (file)
@@ -105,7 +105,6 @@ local redis_lua_script_can_store_train_vec = [[
   local nspam = 0
   local nham = 0
   local lim = tonumber(KEYS[3])
-  lim = lim + lim * 0.1
 
   local ret = redis.call('LLEN', prefix .. '_spam')
   if ret then nspam = tonumber(ret) end