From cd102c36aedf2a8f65ff235a009f297352cd6b65 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 8 Jun 2018 17:27:15 +0200 Subject: JSON: Don't print burst if equal to 5 Analogous to commit 3dddef928d80d ("statement: don't print burst if equals 5"), don't print the default burst value. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- src/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/json.c') diff --git a/src/json.c b/src/json.c index 306cab7b..9019982a 100644 --- a/src/json.c +++ b/src/json.c @@ -990,7 +990,7 @@ json_t *limit_stmt_json(const struct stmt *stmt, struct output_ctx *octx) json_object_set_new(root, "inv", json_boolean(inv)); if (rate_unit) json_object_set_new(root, "rate_unit", json_string(rate_unit)); - if (burst) { + if (burst && burst != 5) { json_object_set_new(root, "burst", json_integer(burst)); if (burst_unit) json_object_set_new(root, "burst_unit", -- cgit v1.2.3