From 07a3b9192001369c7bf74cd4f096dc49703b24e9 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 21 Oct 2018 21:36:51 -0500 Subject: Add % to lib/args.c (long time in milliseconds), add xmillitime(), redo xparsetime() not to need floating point, adjust callers. --- toys/other/timeout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/other') diff --git a/toys/other/timeout.c b/toys/other/timeout.c index b62d696e..b903c3ec 100644 --- a/toys/other/timeout.c +++ b/toys/other/timeout.c @@ -58,7 +58,7 @@ void xparsetimeval(char *s, struct timeval *tv) { long ll; - tv->tv_sec = xparsetime(s, 1000000, &ll); + tv->tv_sec = xparsetime(s, 6, &ll); tv->tv_usec = ll; } -- cgit v1.2.3