aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/sleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/sleep.c')
-rw-r--r--toys/posix/sleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/sleep.c b/toys/posix/sleep.c
index c7b8bbf1..0381c107 100644
--- a/toys/posix/sleep.c
+++ b/toys/posix/sleep.c
@@ -31,6 +31,6 @@ void sleep_main(void)
{
struct timespec tv;
- tv.tv_sec = xparsetime(*toys.optargs, 1000000000, &tv.tv_nsec);
+ tv.tv_sec = xparsetime(*toys.optargs, 9, &tv.tv_nsec);
toys.exitval = !!nanosleep(&tv, NULL);
}