From 669d2fad1a0efa0f35d046395351d3e1dcb73ffe Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Sun, 17 Feb 2002 05:39:50 +0000 Subject: time_elapsed_with_signal was completly wrong, fix. --- regress/sys/kern/nanosleep/nanosleep.c | 6 +++--- 1 file 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 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; } -- cgit v1.2.3