From c6a7d59c20f238aab096f918acf84ca30265ed07 Mon Sep 17 00:00:00 2001 From: Daniel Walton Date: Thu, 20 Oct 2016 17:21:34 +0000 Subject: bgpd: 'show ip bgp summary json' shows large negative value for "peerUptimeMsec" Signed-off-by: Daniel Walton Reviewed-by: Donald Sharp Reviewed-by: Don Slice Ticket: CM-13239 --- lib/json.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/json.c') diff --git a/lib/json.c b/lib/json.c index 58f0e995f..ca30c6098 100644 --- a/lib/json.c +++ b/lib/json.c @@ -53,6 +53,12 @@ json_object_int_add(struct json_object* obj, const char *key, int32_t i) json_object_object_add(obj, key, json_object_new_int(i)); } +void +json_object_long_add(struct json_object* obj, const char *key, int64_t i) +{ + json_object_object_add(obj, key, json_object_new_int64(i)); +} + void json_object_boolean_false_add(struct json_object* obj, const char *key) { -- cgit v1.2.3