]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Fix peer uptime display in milliseconds
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 2 Jan 2018 14:47:38 +0000 (09:47 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 3 Jan 2018 16:19:20 +0000 (11:19 -0500)
commite0330274590f87f53838b0a2e62f467dae77d566
treeea02c5f1a78ffd1ff8380b2e3caede8d92a73f46
parentbaa68bca40d93e01d71f0e2723ef4ceddd3f6f97
bgpd: Fix peer uptime display in milliseconds

For some reason bgp is calculating the peer uptime
in miliseconds incorrectly.  Additionally we have
the peer_uptime function call that should be doing this!
But since we've choosen different names for the json output
we cannot fix it at this point.

uptime contains the number of seconds of uptime here.  Just
multiply by 1k and display that( as peer_uptime does )

Fixes: #1585
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_vty.c