summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/net/bfd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/bfd.c b/sys/net/bfd.c
index 89842ad70c1..41572ba49c7 100644
--- a/sys/net/bfd.c
+++ b/sys/net/bfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bfd.c,v 1.73 2019/01/18 08:32:59 phessler Exp $ */
+/* $OpenBSD: bfd.c,v 1.74 2019/01/20 22:52:23 phessler Exp $ */
/*
* Copyright (c) 2016-2018 Peter Hessler <phessler@openbsd.org>
@@ -195,7 +195,7 @@ bfdset(struct rtentry *rt)
bfd->bc_rt = rt;
rtref(bfd->bc_rt); /* we depend on this route not going away */
- microtime(bfd->bc_time);
+ getmicrotime(bfd->bc_time);
bfd_reset(bfd);
bfd->bc_neighbor->bn_ldiscr = arc4random();
@@ -956,7 +956,7 @@ bfd_set_uptime(struct bfd_config *bfd)
{
struct timeval tv;
- microtime(&tv);
+ getmicrotime(&tv);
bfd->bc_lastuptime = tv.tv_sec - bfd->bc_time->tv_sec;
memcpy(bfd->bc_time, &tv, sizeof(tv));
}