]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix grow_factor
authorAndrew Lewis <nerf@judo.za.org>
Wed, 10 Apr 2024 14:03:07 +0000 (16:03 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 10 Apr 2024 14:03:07 +0000 (16:03 +0200)
src/libmime/scan_result.c

index 09c3208cff6beb946abd502ae4f2307ad5a4bb7d..ad3b5ef246fe1e0f96cde20a8af266cb074629db 100644 (file)
@@ -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;