summaryrefslogtreecommitdiff
path: root/bgpd/bgp_dump.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-08-17 18:27:54 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-08-24 08:23:40 -0400
commit083ec940aba3966ba7e60b4b4f51a0bc6603ddd8 (patch)
tree4e4572ab077740b9c7404cc9622f8423ed68a748 /bgpd/bgp_dump.c
parent9e7103f6b7515ac859ce0b61597129634cff6d3e (diff)
bgpd: Convert from bgp_clock() to monotime()
Let's convert to our actual library call instead of using yet another abstraction that makes it fun for people to switch daemons. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_dump.c')
-rw-r--r--bgpd/bgp_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_dump.c b/bgpd/bgp_dump.c
index 720925b20f..9f64341640 100644
--- a/bgpd/bgp_dump.c
+++ b/bgpd/bgp_dump.c
@@ -367,7 +367,7 @@ bgp_dump_route_node_record(int afi, struct bgp_dest *dest,
stream_putw(obuf, path->peer->table_dump_index);
/* Originated */
- stream_putl(obuf, time(NULL) - (bgp_clock() - path->uptime));
+ stream_putl(obuf, time(NULL) - (monotime(NULL) - path->uptime));
/*Path Identifier*/
if (addpath_capable) {