diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-04-23 15:41:29 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-04-23 15:41:29 +0100 |
commit | 990a9dc8db6682d45315b6952864747e3e0c521c (patch) | |
tree | 728de17b138ca00b6ad3e2289a9ce6d38aa00b0e /src | |
parent | 26ac157abccadd0e62868f35438fb04ff41d7195 (diff) | |
download | rspamd-990a9dc8db6682d45315b6952864747e3e0c521c.tar.gz rspamd-990a9dc8db6682d45315b6952864747e3e0c521c.zip |
[Minor] Further normalization
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/fuzzy_check.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |