summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-12-29 15:00:05 +0100
committerLennart Poettering <lennart@poettering.net>2011-12-29 15:00:05 +0100
commitde97b26ac5e29063632312ec1a20eb6318ca924c (patch)
treebbd1326deb014f5072340691d8adaaad8b71fe3c /src
parent2a59ea54f136f8fcf6a4e1bdfc51448c81281a3e (diff)
journald: increase rate limit burst rate
Diffstat (limited to 'src')
-rw-r--r--src/journal/journald.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/journal/journald.c b/src/journal/journald.c
index c216b78790..e7231d96f7 100644
--- a/src/journal/journald.c
+++ b/src/journal/journald.c
@@ -44,6 +44,9 @@
#define USER_JOURNALS_MAX 1024
#define STDOUT_STREAMS_MAX 4096
+#define DEFAULT_RATE_LIMIT_INTERVAL (10*USEC_PER_SEC)
+#define DEFAULT_RATE_LIMIT_BURST 200
+
#define RECHECK_AVAILABLE_SPACE_USEC (30*USEC_PER_SEC)
typedef struct StdoutStream StdoutStream;
@@ -1574,7 +1577,7 @@ static int server_init(Server *s) {
if (r < 0)
return r;
- s->rate_limit = journal_rate_limit_new(10*USEC_PER_SEC, 2);
+ s->rate_limit = journal_rate_limit_new(DEFAULT_RATE_LIMIT_INTERVAL, DEFAULT_RATE_LIMIT_BURST);
if (!s->rate_limit)
return -ENOMEM;