From 990a9dc8db6682d45315b6952864747e3e0c521c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 23 Apr 2024 15:41:29 +0100 Subject: [PATCH] [Minor] Further normalization --- src/plugins/fuzzy_check.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 7691e5c71..a035eeaae 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -2682,6 +2682,7 @@ fuzzy_check_timer_callback(int fd, short what, void *arg) /* Do not make delay more than 500ms for performance considerations */ backpressure_time = MIN(backpressure_time, 0.5); backpressure_time = rspamd_time_jitter(backpressure_time * 0.5, 0.0); + backpressure_time = MAX(backpressure_time, 0.1); /* Inverse to distinguish */ msg_debug_fuzzy_check("backpressure for %.2f milliseconds (server=%s), retransmits: %d;", backpressure_time * 1000, @@ -2870,6 +2871,7 @@ fuzzy_controller_timer_callback(int fd, short what, void *arg) /* Do not make delay more than 500ms for performance considerations */ backpressure_time = MIN(backpressure_time, 0.5); backpressure_time = rspamd_time_jitter(backpressure_time * 0.5, 0.0); + backpressure_time = MAX(backpressure_time, 0.1); /* Inverse to distinguish */ msg_debug_fuzzy_check("backpressure for %.2f milliseconds (server=%s), retransmits: %d;", backpressure_time * 1000, -- 2.39.5