diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1998-04-05 12:10:41 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1998-04-05 12:10:41 +0000 |
| commit | 5704ba6a06d36242c8f6bbd10a29fa6df6f4cc78 (patch) | |
| tree | 4c5d6c06ff7bcdb8ebfad5e280579d0a588451bf /sys | |
| parent | bfe6c9fabf67cab1d17b6e01358a5b3ed0e86ec1 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_time.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index 6337414b9fe56..452e0e024c623 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.49 1998/04/05 11:17:19 peter Exp $ + * $Id: kern_time.c,v 1.50 1998/04/05 11:49:36 phk Exp $ */ #include <sys/param.h> @@ -194,7 +194,7 @@ nanosleep1(p, rqt, rmt) struct proc *p; struct timespec *rqt, *rmt; { - struct timespec ts, ts2; + struct timespec ts, ts2, ts3; struct timeval tv; int error; @@ -222,9 +222,9 @@ nanosleep1(p, rqt, rmt) } if (timespeccmp(&ts2, &ts, >=)) return (0); - getnanoruntime(&ts2); - timespecsub(&ts2, &ts); - TIMESPEC_TO_TIMEVAL(&tv, &ts2); + ts3 = ts; + timespecsub(&ts3, &ts2); + TIMESPEC_TO_TIMEVAL(&tv, &ts3); } } |
