chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
efivars: rename last remaining err to r
[elogind.git]
/
src
/
shared
/
ratelimit.c
diff --git
a/src/shared/ratelimit.c
b/src/shared/ratelimit.c
index 1054d52f979ee8e493c52875a40d68b37994cc8e..81fc9c19ff6c30eff6d1be1c5f9df48fc7a7e90d 100644
(file)
--- a/
src/shared/ratelimit.c
+++ b/
src/shared/ratelimit.c
@@
-19,10
+19,8
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <assert.h>
#include "ratelimit.h"
#include "ratelimit.h"
-#include "log.h"
/* Modelled after Linux' lib/ratelimit.c by Dave Young
* <hidave.darkstar@gmail.com>, which is licensed GPLv2. */
/* Modelled after Linux' lib/ratelimit.c by Dave Young
* <hidave.darkstar@gmail.com>, which is licensed GPLv2. */
@@
-46,7
+44,7
@@
bool ratelimit_test(RateLimit *r) {
goto good;
}
goto good;
}
- if (r->num <
=
r->burst)
+ if (r->num < r->burst)
goto good;
return false;
goto good;
return false;