From 8f5fb08857e989193ea30828175f61599512add5 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 14 Jul 2011 15:10:23 +0400 Subject: [PATCH] Adjust interval. --- src/expressions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/expressions.c b/src/expressions.c index 641cc6dc4..86f6c0070 100644 --- a/src/expressions.c +++ b/src/expressions.c @@ -1046,7 +1046,7 @@ rspamd_parts_distance (struct worker_task * task, GList * args, void *unused) diff = *pdiff; if (diff != -1) { if (threshold2 > 0) { - if (diff >= MIN (threshold, threshold2) && diff <= MAX (threshold, threshold2)) { + if (diff >= MIN (threshold, threshold2) && diff < MAX (threshold, threshold2)) { return TRUE; } } @@ -1104,7 +1104,7 @@ rspamd_parts_distance (struct worker_task * task, GList * args, void *unused) *pdiff = diff; memory_pool_set_variable (task->task_pool, "parts_distance", pdiff, NULL); if (threshold2 > 0) { - if (diff >= MIN (threshold, threshold2) && diff <= MAX (threshold, threshold2)) { + if (diff >= MIN (threshold, threshold2) && diff < MAX (threshold, threshold2)) { return TRUE; } } -- 2.39.5