]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Further normalization 4939/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 23 Apr 2024 14:41:29 +0000 (15:41 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 23 Apr 2024 14:41:29 +0000 (15:41 +0100)
src/plugins/fuzzy_check.c

index 7691e5c7103b790849fdaca9301a8ca358997b0b..a035eeaae606f3a15df8d3a3e1571066c84cbb83 100644 (file)
@@ -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,