]> source.dussan.org Git - rspamd.git/commitdiff
Adjust interval.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 14 Jul 2011 11:10:23 +0000 (15:10 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 14 Jul 2011 11:10:23 +0000 (15:10 +0400)
src/expressions.c

index 641cc6dc403fc477a9b2ca9c9c8e7ceae0250170..86f6c0070c7cd6fd2f97080d248ca7ba8e5dc4e9 100644 (file)
@@ -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;
                                }
                        }