diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-17 05:39:50 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-17 05:39:50 +0000 |
commit | 669d2fad1a0efa0f35d046395351d3e1dcb73ffe (patch) | |
tree | 296c7cdb8d24b714002fdd3ba8e0f5a25b9ec08c /regress | |
parent | 62a7900bf3fa2a24baef2b303c51653fea531264 (diff) |
time_elapsed_with_signal was completly wrong, fix.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sys/kern/nanosleep/nanosleep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/sys/kern/nanosleep/nanosleep.c b/regress/sys/kern/nanosleep/nanosleep.c index 9c7e0ff1ace..2507f29c35d 100644 --- a/regress/sys/kern/nanosleep/nanosleep.c +++ b/regress/sys/kern/nanosleep/nanosleep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nanosleep.c,v 1.3 2002/02/17 05:37:20 art Exp $ */ +/* $OpenBSD: nanosleep.c,v 1.4 2002/02/17 05:39:49 art Exp $ */ /* * Written by Artur Grabowski <art@openbsd.org> 2002 Public Domain. */ @@ -211,8 +211,8 @@ time_elapsed_with_signal(void) timeradd(&etv, &stv, &stv); - if (stv.tv_sec == 0 && stv.tv_usec < 500000) { - warnx("slept less than 0.5 sec"); + if (stv.tv_sec < 10) { + warnx("slept time + leftover time < 10 sec"); return 1; } |