diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-03-12 20:44:31 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-03-12 20:44:31 -0400 |
| commit | 1af62044d9cfa7267484b85625e77231a7829e30 (patch) | |
| tree | 4c1b3bcd6f09ac2d12fa216e6362c5947aace828 | |
| parent | 6e727402bd7ac17028af98773b21ac020fa80a57 (diff) | |
ospfd: When converting to ms divide by 1000
When converting to miliseconds divide by 1000 not
the other way around.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | ospfd/ospf_vty.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index bb22f211a7..2ab480e9d7 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -3512,7 +3512,7 @@ static void show_ip_ospf_interface_sub(struct vty *vty, struct ospf *ospf, oi->output_cost); json_object_int_add( json_interface_sub, "transmitDelayMsecs", - 1000 / OSPF_IF_PARAM(oi, transmit_delay)); + OSPF_IF_PARAM(oi, transmit_delay) / 1000); json_object_string_add(json_interface_sub, "state", lookup_msg(ospf_ism_state_msg, oi->state, NULL)); @@ -3616,20 +3616,20 @@ static void show_ip_ospf_interface_sub(struct vty *vty, struct ospf *ospf, if (OSPF_IF_PARAM(oi, fast_hello) == 0) json_object_int_add( json_interface_sub, "timerMsecs", - 1000 / OSPF_IF_PARAM(oi, v_hello)); + OSPF_IF_PARAM(oi, v_hello) / 1000); else json_object_int_add( json_interface_sub, "timerMsecs", - 1000 / OSPF_IF_PARAM(oi, fast_hello)); + OSPF_IF_PARAM(oi, fast_hello) / 1000); json_object_int_add(json_interface_sub, "timerDeadMsecs", - 1000 / OSPF_IF_PARAM(oi, v_wait)); + OSPF_IF_PARAM(oi, v_wait) / 1000); json_object_int_add(json_interface_sub, "timerWaitMsecs", - 1000 / OSPF_IF_PARAM(oi, v_wait)); + OSPF_IF_PARAM(oi, v_wait) / 1000); json_object_int_add( json_interface_sub, "timerRetransmit", - 1000 / OSPF_IF_PARAM(oi, retransmit_interval)); + OSPF_IF_PARAM(oi, retransmit_interval) / 1000); } else { vty_out(vty, " Timer intervals configured,"); vty_out(vty, " Hello "); |
