aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-31 18:34:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-31 18:34:10 +0100
commit12bdbf8bc984ca020ad9bd578de24c70d59c98bd (patch)
treea80838d7530f59b7862db1f322b64aebfe319a58 /src/plugins
parent32537ef12ff8a0bc5781769cd1cd75823438866f (diff)
downloadrspamd-12bdbf8bc984ca020ad9bd578de24c70d59c98bd.tar.gz
rspamd-12bdbf8bc984ca020ad9bd578de24c70d59c98bd.zip
[Minor] Revert layers number change: output layer is added explicitly
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/fann_redis.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/fann_redis.lua b/src/plugins/lua/fann_redis.lua
index 42c691d37..65d354b21 100644
--- a/src/plugins/lua/fann_redis.lua
+++ b/src/plugins/lua/fann_redis.lua
@@ -361,7 +361,7 @@ end
local function create_fann(n, nlayers)
local layers = {}
local div = 1.0
- for _ = 1, nlayers do
+ for _ = 1, nlayers - 1 do
table.insert(layers, math.floor(n / div))
div = div * 2
end