]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] One more tweak to start fann learning
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 22 Feb 2017 17:45:31 +0000 (17:45 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 22 Feb 2017 17:45:31 +0000 (17:45 +0000)
src/plugins/lua/fann_redis.lua

index f57a43466dd3f156b81de82fc7b1cf5a57cca231..d2351c87de77fc84cc55f9d04166c0e1ab7cc64a 100644 (file)
@@ -48,6 +48,7 @@ local redis_lua_script_can_train = [[
   local nspam = 0
   local nham = 0
   local lim = tonumber(KEYS[4])
+  lim = lim + lim * 0.1
 
   local exists = redis.call('SISMEMBER', KEYS[1], KEYS[2])
   if not exists or exists == 0 then