]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: test-cpu-limit - Increase ALLOW_MSECS_BELOW to 500ms
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 17 Feb 2021 11:18:55 +0000 (13:18 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 19 Feb 2021 07:01:01 +0000 (07:01 +0000)
The test still randomly failed with 100ms. Maybe 500ms is enough?

src/lib/test-cpu-limit.c

index 9c8b3e48bd29bc53cd3ebb38ef61589a5964ef0a..aaf50c3868bbf3c59bc132c503b2b97d2f291591 100644 (file)
@@ -11,7 +11,7 @@
 
 /* The CPU limits aren't exact. Allow this much leniency in the time
    comparisons. */
-#define ALLOW_MSECS_BELOW 100
+#define ALLOW_MSECS_BELOW 500
 #define ALLOW_MSECS_ABOVE 1500
 
 static bool limit_exceeded1, limit_exceeded2;