diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-10 19:20:54 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-10 19:21:39 +0000 |
commit | 21579c5bed52a1d968691d35aed61ee7ae27234f (patch) | |
tree | 318a414ef5e710d6324915d634778b44d106739b /src/libstat | |
parent | 4eb85b3b6ab7d039a71b53f4f1a972ee33d5ed2d (diff) | |
download | rspamd-21579c5bed52a1d968691d35aed61ee7ae27234f.tar.gz rspamd-21579c5bed52a1d968691d35aed61ee7ae27234f.zip |
[Fix] Fix autolearn parameters reading
Issue: #1980
Closes: #1980
Diffstat (limited to 'src/libstat')
-rw-r--r-- | src/libstat/stat_process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index 9ca26cd83..886108d5d 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -1140,7 +1140,7 @@ rspamd_stat_check_autolearn (struct rspamd_task *task) if ((ucl_object_type (elt1) == UCL_FLOAT || ucl_object_type (elt1) == UCL_INT) && (ucl_object_type (elt2) == UCL_FLOAT || - ucl_object_type (elt1) == UCL_INT)) { + ucl_object_type (elt2) == UCL_INT)) { ham_score = ucl_object_todouble (elt1); spam_score = ucl_object_todouble (elt2); |