]> git.puffer.fish Git - matthieu/frr.git/commitdiff
OSPF refreshTimerMsecs in json output is off
authorDaniel Walton <dwalton@cumulusnetworks.com>
Fri, 13 May 2016 18:19:56 +0000 (18:19 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Fri, 13 May 2016 18:19:56 +0000 (18:19 +0000)
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-10960

The timer is in seconds and was being divided by 1000 instead of
multiplying by 1000 when converting to ms.

ospfd/ospf_vty.c

index ab0ed14f1b63e76415b9ea45f15f1e4088c15c90..69a76dd222fe17a316d091691829be9a40811bb3 100644 (file)
@@ -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
     {