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