summaryrefslogtreecommitdiffstats
path: root/src/libmime/lang_detection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmime/lang_detection.c')
-rw-r--r--src/libmime/lang_detection.c2
1 files changed, 1 insertions, 1 deletions
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);