summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2003-12-20 16:13:53 +0000
committermiod <miod@openbsd.org>2003-12-20 16:13:53 +0000
commitd1cd85960617134f69c69239d73f2cf25eca9546 (patch)
tree1d4998abbf721b0ec3e93188cd6eb8abbdb91a61
parent- use .I and .B instead of .IT and .UL, respectively, to respect punctuation (diff)
downloadwireguard-openbsd-d1cd85960617134f69c69239d73f2cf25eca9546.tar.xz
wireguard-openbsd-d1cd85960617134f69c69239d73f2cf25eca9546.zip
Don't let microtime() return a struct timeval with exactly 1000000 microseconds.
-rw-r--r--sys/arch/hppa/hppa/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c
index d4144f091fc..77b0424d144 100644
--- a/sys/arch/hppa/hppa/machdep.c
+++ b/sys/arch/hppa/hppa/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.120 2003/12/18 08:05:20 mickey Exp $ */
+/* $OpenBSD: machdep.c,v 1.121 2003/12/20 16:13:53 miod Exp $ */
/*
* Copyright (c) 1999-2002 Michael Shalayeff
@@ -768,7 +768,7 @@ microtime(struct timeval *tv)
splx(s);
tv->tv_usec += itmr * cpu_ticksdenom / cpu_ticksnum;
- if (tv->tv_usec > 1000000) {
+ if (tv->tv_usec >= 1000000) {
tv->tv_usec -= 1000000;
tv->tv_sec++;
}