summaryrefslogtreecommitdiff
path: root/sys/arch/sun3
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>2000-04-11 02:44:34 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>2000-04-11 02:44:34 +0000
commit0889e17ff20ca0cbfe9a0f19088dbc9a087e5745 (patch)
tree68f16656cc1ba4a010079658398a00f043c9a7be /sys/arch/sun3
parent2b75b6a5dec6410bbe8cbe1972e48e2a7547cd40 (diff)
Check usec for >= 1000000, not just > ; as msaitoh@NetBSD.org
Diffstat (limited to 'sys/arch/sun3')
-rw-r--r--sys/arch/sun3/sun3/clock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sun3/sun3/clock.c b/sys/arch/sun3/sun3/clock.c
index f9bd5d07303..6e4abf5879a 100644
--- a/sys/arch/sun3/sun3/clock.c
+++ b/sys/arch/sun3/sun3/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.7 1997/01/16 04:04:14 kstailey Exp $ */
+/* $OpenBSD: clock.c,v 1.8 2000/04/11 02:44:31 pjanzen Exp $ */
/* $NetBSD: clock.c,v 1.31 1996/10/30 00:24:42 gwr Exp $ */
/*
@@ -302,13 +302,13 @@ microtime(tvp)
*tvp = time;
tvp->tv_usec++; /* XXX */
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
if (tvp->tv_sec == lasttime.tv_sec &&
tvp->tv_usec <= lasttime.tv_usec &&
- (tvp->tv_usec = lasttime.tv_usec + 1) > 1000000)
+ (tvp->tv_usec = lasttime.tv_usec + 1) >= 1000000)
{
tvp->tv_sec++;
tvp->tv_usec -= 1000000;