diff options
-rw-r--r-- | src/journal/journald.c | 5 |
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; |