summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_time.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2008-04-04 22:48:02 +0000
committerdlg <dlg@openbsd.org>2008-04-04 22:48:02 +0000
commit6083a4dae7bd67d9bffc8b62c2bd736a409a6595 (patch)
treea9b7243d747aa240d6bfe36915b2eedc4e9f05d2 /sys/kern/kern_time.c
parentoption 144 is commonly used for tftp-config-file. (diff)
downloadwireguard-openbsd-6083a4dae7bd67d9bffc8b62c2bd736a409a6595.tar.xz
wireguard-openbsd-6083a4dae7bd67d9bffc8b62c2bd736a409a6595.zip
ratecheck(9) only seems to be used to limit things to very coarse intervals
like .25 seconds or 5 seconds. the accuracy of microuptime is not really needed then, so switch it to getmicrouptime. ok henning@ art@
Diffstat (limited to 'sys/kern/kern_time.c')
-rw-r--r--sys/kern/kern_time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c
index d2d8ddae120..3fa6e524b6e 100644
--- a/sys/kern/kern_time.c
+++ b/sys/kern/kern_time.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_time.c,v 1.63 2008/01/02 17:57:49 miod Exp $ */
+/* $OpenBSD: kern_time.c,v 1.64 2008/04/04 22:48:02 dlg Exp $ */
/* $NetBSD: kern_time.c,v 1.20 1996/02/18 11:57:06 fvdl Exp $ */
/*
@@ -749,7 +749,7 @@ ratecheck(struct timeval *lasttime, const struct timeval *mininterval)
struct timeval tv, delta;
int rv = 0;
- microuptime(&tv);
+ getmicrouptime(&tv);
timersub(&tv, lasttime, &delta);