diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-12 17:47:35 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-12 17:47:35 +0100 |
commit | 1408e7fd024715a1e4dbf2370410354c666bd2f6 (patch) | |
tree | 9952495b266e88560e8be43a06523bd8e155a389 /src/plugins/lua | |
parent | 02eb13b68853be1d5e2db65580eca204175e4380 (diff) | |
download | rspamd-1408e7fd024715a1e4dbf2370410354c666bd2f6.tar.gz rspamd-1408e7fd024715a1e4dbf2370410354c666bd2f6.zip |
[Minor] Fix fann inputs count check
Diffstat (limited to 'src/plugins/lua')
-rw-r--r-- | src/plugins/lua/fann_scores.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/fann_scores.lua b/src/plugins/lua/fann_scores.lua index ea6319801..4508afc17 100644 --- a/src/plugins/lua/fann_scores.lua +++ b/src/plugins/lua/fann_scores.lua @@ -311,7 +311,7 @@ end local function check_fann(id) if data[id].fann then - local n = rspamd_config:get_symbols_count() + count_metatokens + local n = rspamd_config:get_symbols_count() + count_metatokens() if n ~= data[id].fann:get_inputs() then rspamd_logger.infox(rspamd_config, 'fann has incorrect number of inputs: %s, %s symbols' .. |