From: Vsevolod Stakhov Date: Tue, 23 Apr 2024 14:41:29 +0000 (+0100) Subject: [Minor] Further normalization X-Git-Tag: 3.9.0~58^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=990a9dc8db6682d45315b6952864747e3e0c521c;p=rspamd.git [Minor] Further normalization --- 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,