diff options
author | Rob Landley <rob@landley.net> | 2018-10-21 21:36:51 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-10-21 21:36:51 -0500 |
commit | 07a3b9192001369c7bf74cd4f096dc49703b24e9 (patch) | |
tree | cfb6f13f8a275f0ae21d6b577baa69d8a05f9ce7 /toys/other | |
parent | 3e0b077ec236aa26bfeb290f3cd7973ec3fbcb7d (diff) | |
download | toybox-07a3b9192001369c7bf74cd4f096dc49703b24e9.tar.gz |
Add % to lib/args.c (long time in milliseconds), add xmillitime(), redo
xparsetime() not to need floating point, adjust callers.
Diffstat (limited to 'toys/other')
-rw-r--r-- | toys/other/timeout.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |