From: Vsevolod Stakhov Date: Thu, 14 Jul 2011 11:10:23 +0000 (+0400) Subject: Adjust interval. X-Git-Tag: 0.4.0~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8f5fb08857e989193ea30828175f61599512add5;p=rspamd.git Adjust interval. --- 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; } }