diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-31 18:34:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-31 18:34:10 +0100 |
commit | 12bdbf8bc984ca020ad9bd578de24c70d59c98bd (patch) | |
tree | a80838d7530f59b7862db1f322b64aebfe319a58 /src/plugins | |
parent | 32537ef12ff8a0bc5781769cd1cd75823438866f (diff) | |
download | rspamd-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.lua | 2 |
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 |