diff options
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 |