diff options
author | Florian Westphal <fw@strlen.de> | 2021-01-21 14:43:52 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2021-01-21 14:47:40 +0100 |
commit | acea765af76e0d28922437d45b9e0efaa95c1db7 (patch) | |
tree | d136f8dd9c6e3b7dc7707c36245764f74f6f775c /src/parser_json.c | |
parent | f40c46f68bee2df430083936c83ca6580430f635 (diff) |
json: limit: set default burst to 5
The tests fail because json printing omits a burst of 5 and
the parser treats that as 'burst 0'.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/parser_json.c')
-rw-r--r-- | src/parser_json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser_json.c b/src/parser_json.c index f0486b77..2d132caf 100644 --- a/src/parser_json.c +++ b/src/parser_json.c @@ -1784,7 +1784,7 @@ static struct stmt *json_parse_limit_stmt(struct json_ctx *ctx, const char *key, json_t *value) { struct stmt *stmt; - uint64_t rate, burst = 0; + uint64_t rate, burst = 5; const char *rate_unit = "packets", *time, *burst_unit = "bytes"; int inv = 0; |