chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Assume that /proc/meminfo can be missing
[elogind.git]
/
src
/
journal
/
journald-rate-limit.c
diff --git
a/src/journal/journald-rate-limit.c
b/src/journal/journald-rate-limit.c
index 8bd68476a39764e13eb1ff16afc218266af43cb8..32e35a926dc25eb7189d5d0757cdb51378913a4a 100644
(file)
--- a/
src/journal/journald-rate-limit.c
+++ b/
src/journal/journald-rate-limit.c
@@
-115,7
+115,7
@@
void journal_rate_limit_free(JournalRateLimit *r) {
free(r);
}
free(r);
}
-static bool journal_rate_limit_group_expired(JournalRateLimitGroup *g, usec_t ts) {
+
_pure_
static bool journal_rate_limit_group_expired(JournalRateLimitGroup *g, usec_t ts) {
unsigned i;
assert(g);
unsigned i;
assert(g);
@@
-170,21
+170,6
@@
fail:
return NULL;
}
return NULL;
}
-static uint64_t u64log2(uint64_t n) {
- unsigned r;
-
- if (n <= 1)
- return 0;
-
- r = 0;
- for (;;) {
- n = n >> 1;
- if (!n)
- return r;
- r++;
- }
-}
-
static unsigned burst_modulate(unsigned burst, uint64_t available) {
unsigned k;
static unsigned burst_modulate(unsigned burst, uint64_t available) {
unsigned k;