summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-06-08 17:27:15 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-06-11 11:31:49 +0200
commitcd102c36aedf2a8f65ff235a009f297352cd6b65 (patch)
treed8c0dc6ddc1a76a468d417e8b2a1e2cdfc8339bb /src
parentb3c348ec09c7904fbc43ae4ba816d934bb23dc3d (diff)
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 <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/json.c2
1 files changed, 1 insertions, 1 deletions
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",