From: Vsevolod Stakhov Date: Sat, 1 Jul 2017 15:19:44 +0000 (+0100) Subject: [Fix] Normalize fuzzy probability better X-Git-Tag: 1.6.2~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e44c17a5e038a8f1cce7f6d7f54314ebf4321a7d;p=rspamd.git [Fix] Normalize fuzzy probability better --- diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index a839aae5f..85e6d2c64 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -1793,12 +1793,11 @@ fuzzy_insert_result (struct fuzzy_client_session *session, type = "img"; } else { - /* XXX: we need something better here */ if (cmd->shingles_count > 0) { type = "txt"; } - nval *= rep->prob; + nval *= rspamd_normalize_probability (rep->prob, 0.5); } msg_info_task (