From 1408e7fd024715a1e4dbf2370410354c666bd2f6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 12 Sep 2016 17:47:35 +0100 Subject: [Minor] Fix fann inputs count check --- src/plugins/lua/fann_scores.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' .. -- cgit v1.2.3