diff options
author | Paul Jakma <paul@quagga.net> | 2011-03-20 22:08:02 +0000 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2011-03-20 22:09:15 +0000 |
commit | d1de1c25962b5470f3825bc82d15e4dd29e1f842 (patch) | |
tree | 9e9b3c6ed51a0fdc78e0eb8900fad8f7e7598b98 /bgpd/bgp_dump.c | |
parent | 4dd87df5af8a59174362e44f83df11f12457c8b4 (diff) | |
parent | e6844aa5d23cf56dd1f31afc96e8145ab188953f (diff) |
Merge paul/ospfd/201012-review ospfd and lib/ fixes and performance improvements
Diffstat (limited to 'bgpd/bgp_dump.c')
-rw-r--r-- | bgpd/bgp_dump.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgp_dump.c b/bgpd/bgp_dump.c index 8087a403..edb725a9 100644 --- a/bgpd/bgp_dump.c +++ b/bgpd/bgp_dump.c @@ -356,7 +356,11 @@ bgp_dump_routes_func (int afi, int first_run, unsigned int seq) stream_putw(obuf, info->peer->table_dump_index); /* Originated */ +#ifdef HAVE_CLOCK_MONOTONIC + stream_putl (obuf, time(NULL) - (bgp_clock() - info->uptime)); +#else stream_putl (obuf, info->uptime); +#endif /* HAVE_CLOCK_MONOTONIC */ /* Dump attribute. */ /* Skip prefix & AFI/SAFI for MP_NLRI */ |