X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fratelimit.c;h=81fc9c19ff6c30eff6d1be1c5f9df48fc7a7e90d;hb=d6ce17c7f02ed3facdb45f65f546e587c2f00950;hp=1054d52f979ee8e493c52875a40d68b37994cc8e;hpb=5430f7f2bc7330f3088b894166bf3524a067e3d8;p=elogind.git
diff --git a/src/shared/ratelimit.c b/src/shared/ratelimit.c
index 1054d52f9..81fc9c19f 100644
--- a/src/shared/ratelimit.c
+++ b/src/shared/ratelimit.c
@@ -19,10 +19,8 @@
along with systemd; If not, see .
***/
-#include
#include "ratelimit.h"
-#include "log.h"
/* Modelled after Linux' lib/ratelimit.c by Dave Young
* , which is licensed GPLv2. */
@@ -46,7 +44,7 @@ bool ratelimit_test(RateLimit *r) {
goto good;
}
- if (r->num <= r->burst)
+ if (r->num < r->burst)
goto good;
return false;