From 7bb5cde31cc73f559ee83b8b8a149c4dc8cb0b7d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 3 Feb 2018 15:40:47 +0000 Subject: [Minor] Apply more aggressive filtering --- src/libmime/lang_detection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libmime') diff --git a/src/libmime/lang_detection.c b/src/libmime/lang_detection.c index e15f99f76..4eb5023f2 100644 --- a/src/libmime/lang_detection.c +++ b/src/libmime/lang_detection.c @@ -923,7 +923,7 @@ rspamd_language_detector_filter_negligible (struct rspamd_task *task, * Probabilities are logarithmic, so if prob1 - prob2 > 4, it means that * prob2 is 2^4 less than prob1 */ - if (max_prob - cand->prob > 1.5) { + if (max_prob - cand->prob > 1) { msg_debug_lang_det ("exclude language %s: %.3f (%.3f max)", cand->lang, cand->prob, max_prob); g_hash_table_iter_remove (&it); -- cgit v1.2.3