]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: peer_uptime overflows after 1 year
authorPaul Jakma <paul@opensourcerouting.org>
Tue, 26 May 2015 14:19:38 +0000 (15:19 +0100)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 19 May 2016 14:41:13 +0000 (10:41 -0400)
commit3a6229da1730bd28d87b3f4c92f5acb483050594
tree0f85e12d4a57b49305c611068f84a1de67090c72
parent1d8893482689508f4fc7a4b0f18c7aae128dd64a
bgpd: peer_uptime overflows after 1 year

* bgpd.c: (peer_uptime) Wraps after 1 year, and doesn't indicate years.
  Fix. Assume a year is 365 days, for an easy life.

Fixes: Bug #836
Reported-by: Rolf Hanßen
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
bgpd/bgpd.c