diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2000-03-23 10:27:06 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2000-03-23 10:27:06 +0000 |
commit | 4bd6780a5e9837cd7791c4b04c56ec3f0aa7750a (patch) | |
tree | aee8fb5a035ca89f5af428e1c8048d80ebff3356 /sys/kern/kern_timeout.c | |
parent | a612cc68cca928348f42c2ef2edcdc811d0ea509 (diff) |
Preserve the FIFO order of issued timeouts.
Diffstat (limited to 'sys/kern/kern_timeout.c')
-rw-r--r-- | sys/kern/kern_timeout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index 9ebbc55ddd6..f6274b691e5 100644 --- a/sys/kern/kern_timeout.c +++ b/sys/kern/kern_timeout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_timeout.c,v 1.1 2000/03/23 09:59:57 art Exp $ */ +/* $OpenBSD: kern_timeout.c,v 1.2 2000/03/23 10:27:05 art Exp $ */ /* * Copyright (c) 2000 Artur Grabowski <art@openbsd.org> * All rights reserved. @@ -140,7 +140,7 @@ timeout_add(new, to_ticks) * will timeout after we do, insert the new timeout there. */ TAILQ_FOREACH(to, &timeout_todo, to_list) { - if (to->to_time - ticks >= to_ticks) { + if (to->to_time - ticks > to_ticks) { TAILQ_INSERT_BEFORE(to, new, to_list); goto out; } |