diff options
author | bde <bde@FreeBSD.org> | 1998-05-17 20:13:01 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-05-17 20:13:01 +0000 |
commit | 2203e2156d6da956fe6657b41c8c586375f58370 (patch) | |
tree | dd08c3613f798fb7f6b8838aaf2869e3c27d43da /sys/kern/kern_time.c | |
parent | 6bcab2370a34dcdd2610690662c2b209314f04eb (diff) | |
download | FreeBSD-src-2203e2156d6da956fe6657b41c8c586375f58370.zip FreeBSD-src-2203e2156d6da956fe6657b41c8c586375f58370.tar.gz |
Fixed interval calculation in realitimexpire() again. Obtained from:
rev.1.9. Broken in: rev.1.50.
Fixed a spelling error. Obtained from: Lite2.
Diffstat (limited to 'sys/kern/kern_time.c')
-rw-r--r-- | sys/kern/kern_time.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index 7e6a659..71d8121 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)kern_time.c 8.1 (Berkeley) 6/10/93 - * $Id: kern_time.c,v 1.55 1998/05/17 11:52:48 phk Exp $ + * $Id: kern_time.c,v 1.56 1998/05/17 20:08:04 bde Exp $ */ #include <sys/param.h> @@ -427,7 +427,7 @@ getitimer(p, uap) s = splclock(); /* XXX still needed ? */ if (uap->which == ITIMER_REAL) { /* - * Convert from absoulte to relative time in .it_value + * Convert from absolute to relative time in .it_value * part of real time timer. If time for real time timer * has passed return 0, else return difference between * current time and time for the timer to go off. @@ -531,8 +531,8 @@ realitexpire(arg) if (timevalcmp(&p->p_realtimer.it_value, &ctv, >)) { ntv = p->p_realtimer.it_value; timevalsub(&ntv, &ctv); - p->p_ithandle = - timeout(realitexpire, (caddr_t)p, tvtohz(&ntv)); + p->p_ithandle = timeout(realitexpire, (caddr_t)p, + tvtohz(&ntv) - 1); splx(s); return; } |