From: Daniel Walton Date: Fri, 13 May 2016 18:19:56 +0000 (+0000) Subject: OSPF refreshTimerMsecs in json output is off X-Git-Tag: frr-2.0-rc1~915 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=54b7214fb9bb6a0bf138ee4dcdf54e64e7753f4d;p=matthieu%2Ffrr.git OSPF refreshTimerMsecs in json output is off Signed-off-by: Daniel Walton Reviewed-by: Donald Sharp Ticket: CM-10960 The timer is in seconds and was being divided by 1000 instead of multiplying by 1000 when converting to ms. --- diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index ab0ed14f1b..69a76dd222 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -3471,7 +3471,7 @@ show_ip_ospf_common (struct vty *vty, struct ospf *ospf, u_char use_json) /* Show write multiplier values */ json_object_int_add(json, "writeMultiplier", ospf->write_oi_count); /* Show refresh parameters. */ - json_object_int_add(json, "refreshTimerMsecs", ospf->lsa_refresh_interval / 1000); + json_object_int_add(json, "refreshTimerMsecs", ospf->lsa_refresh_interval * 1000); } else {