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/dev | |
parent | 2b75b6a5dec6410bbe8cbe1972e48e2a7547cd40 (diff) |
Check usec for >= 1000000, not just > ; as msaitoh@NetBSD.org
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/sequencer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sequencer.c b/sys/dev/sequencer.c index 2db4eff0eb2..534673c21a9 100644 --- a/sys/dev/sequencer.c +++ b/sys/dev/sequencer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sequencer.c,v 1.2 1999/07/23 13:18:04 niklas Exp $ */ +/* $OpenBSD: sequencer.c,v 1.3 2000/04/11 02:44:33 pjanzen Exp $ */ /* $NetBSD: sequencer.c,v 1.13 1998/11/25 22:17:07 augustss Exp $ */ /* @@ -68,7 +68,7 @@ #define ADDTIMEVAL(a, b) ( \ (a)->tv_sec += (b)->tv_sec, \ (a)->tv_usec += (b)->tv_usec, \ - (a)->tv_usec > 1000000 ? ((a)->tv_sec++, (a)->tv_usec -= 1000000) : 0\ + (a)->tv_usec >= 1000000 ? ((a)->tv_sec++, (a)->tv_usec -= 1000000) : 0\ ) #define SUBTIMEVAL(a, b) ( \ |