diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-29 14:55:38 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-29 14:55:38 +0100 |
commit | 206ec754dc7b8ae23a53b473e385d266252aca74 (patch) | |
tree | e03835ef810e004f3ef30aa0e1fb226cef437a87 /src/plugins/lua | |
parent | f679ec111cc53f9fff9cf5a4afe51aedf6fa71d5 (diff) | |
download | rspamd-206ec754dc7b8ae23a53b473e385d266252aca74.tar.gz rspamd-206ec754dc7b8ae23a53b473e385d266252aca74.zip |
[Fix] Inverse logic for saving ANN
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 2a124f019..1e6f90985 100644 --- a/src/plugins/lua/fann_scores.lua +++ b/src/plugins/lua/fann_scores.lua @@ -187,7 +187,7 @@ local function fann_train_callback(score, required_score,results, cf, id, opts) local res = false local err,st = rspamd_util.stat(fname) - if not err then + if err then local fd,err = rspamd_util.create_file(fname) if not fd then rspamd_logger.errx(cf, 'cannot save fann in %s: %s', fname, err) |