summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorPeter Hessler <phessler@cvs.openbsd.org>2019-01-20 22:52:24 +0000
committerPeter Hessler <phessler@cvs.openbsd.org>2019-01-20 22:52:24 +0000
commit4eef135bb617d428d12d72212d67e9e91c68caef (patch)
tree4a0acbf1ef6fbab90f4006d03730066695a75cf2 /sys/net
parentc08eb619aa8261e8970a502dbf1d6055d34d6556 (diff)
use the faster interface, since the precision is not necessary
Diffstat (limited to 'sys/net')
-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));
}