diff options
author | Andrew Lewis <nerf@judo.za.org> | 2024-04-10 16:03:07 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2024-04-10 16:03:07 +0200 |
commit | 1c07c471bb01b58e5b212d7e9b017a3d35fd0999 (patch) | |
tree | 66976f6eddce6e6f3697727d06c1d10a9c3f6997 /src/libmime/scan_result.c | |
parent | 5f8ea684dab9a4a57adf99ca7f577601aeba2a86 (diff) | |
download | rspamd-1c07c471bb01b58e5b212d7e9b017a3d35fd0999.tar.gz rspamd-1c07c471bb01b58e5b212d7e9b017a3d35fd0999.zip |
[Minor] Fix grow_factor
Diffstat (limited to 'src/libmime/scan_result.c')
-rw-r--r-- | src/libmime/scan_result.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/scan_result.c b/src/libmime/scan_result.c index 09c3208cf..ad3b5ef24 100644 --- a/src/libmime/scan_result.c +++ b/src/libmime/scan_result.c @@ -1101,7 +1101,7 @@ void rspamd_task_result_adjust_grow_factor(struct rspamd_task *task, /* Adjust factor by selecting all symbols and checking those with positive scores */ kh_foreach(result->symbols, kk, res, { if (res->score > 0) { - double mult = 1.0 - grow_factor; + double mult = grow_factor - 1.0; /* We adjust the factor by the ratio of the score to the max limit */ if (max_limit > 0 && !isnan(res->score)) { mult *= res->score / max_limit; |