summaryrefslogtreecommitdiffstats
path: root/src/parser_json.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-01-21 14:43:52 +0100
committerFlorian Westphal <fw@strlen.de>2021-01-21 14:47:40 +0100
commitacea765af76e0d28922437d45b9e0efaa95c1db7 (patch)
treed136f8dd9c6e3b7dc7707c36245764f74f6f775c /src/parser_json.c
parentf40c46f68bee2df430083936c83ca6580430f635 (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.c2
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;