diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 2000-04-11 02:44:34 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 2000-04-11 02:44:34 +0000 |
commit | 0889e17ff20ca0cbfe9a0f19088dbc9a087e5745 (patch) | |
tree | 68f16656cc1ba4a010079658398a00f043c9a7be /sys/arch/powerpc | |
parent | 2b75b6a5dec6410bbe8cbe1972e48e2a7547cd40 (diff) |
Check usec for >= 1000000, not just > ; as msaitoh@NetBSD.org
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r-- | sys/arch/powerpc/powerpc/clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc/powerpc/clock.c b/sys/arch/powerpc/powerpc/clock.c index a447e764dc4..9db0451c3e3 100644 --- a/sys/arch/powerpc/powerpc/clock.c +++ b/sys/arch/powerpc/powerpc/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.7 2000/03/31 04:14:18 rahnds Exp $ */ +/* $OpenBSD: clock.c,v 1.8 2000/04/11 02:44:30 pjanzen Exp $ */ /* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */ /* @@ -305,7 +305,7 @@ microtime(tvp) asm volatile ("mtmsr %0" :: "r"(msr)); ticks /= 1000; tvp->tv_usec += ticks; - while (tvp->tv_usec > 1000000) { + while (tvp->tv_usec >= 1000000) { tvp->tv_usec -= 1000000; tvp->tv_sec++; } |