From e44c17a5e038a8f1cce7f6d7f54314ebf4321a7d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 1 Jul 2017 16:19:44 +0100 Subject: [PATCH] [Fix] Normalize fuzzy probability better --- src/plugins/fuzzy_check.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ( -- 2.39.5