X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fratelimit.c;h=81fc9c19ff6c30eff6d1be1c5f9df48fc7a7e90d;hp=1054d52f979ee8e493c52875a40d68b37994cc8e;hb=6ec9b87c4ecf5144b5ea845a53a352dd9f2d173a;hpb=f274ece0f76b5709408821e317e87aef76123db6 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;