Re: [Toybox] [PATCH] Support fractional seconds (and other time units) in `top -d`.

2018-05-06 Thread Rob Landley
On 05/05/2018 02:15 PM, enh wrote: > ping? I've also had: @@ -793,6 +821,7 @@ long xparsetime(char *arg, long units, long *fraction) double d; long l; + if (*arg != '.' && !isdigit(*arg)) error_exit("bad %s", arg); if (CFG_TOYBOX_FLOAT) d = strtod(arg, &arg); else l = strtoul(arg, &

Re: [Toybox] [PATCH] Support fractional seconds (and other time units) in `top -d`.

2018-05-05 Thread Rob Landley
Yeah, sorry, the todo item this spun off is "lib/args.c updates" but I spent today distracted*. Rob * I.E. trying to figuring out how ubifs (and the ubi layer under it) work, preferably with qemu emulating flash, and how to genericize https://balau82.wordpress.com/2010/02/28/hello-world-for-bare-

Re: [Toybox] [PATCH] Support fractional seconds (and other time units) in `top -d`.

2018-05-05 Thread enh
ping? On Thu, May 3, 2018 at 3:25 PM, enh wrote: > LTP uses `top -d 0.1`, which isn't convincingly useful, but general > support for other time units might be useful, and switching to xparsetime > addresses both at once. > > Also fix 3169d948c049664bcf7216d4c4ae751881099d3e where I mistakenly > t

[Toybox] [PATCH] Support fractional seconds (and other time units) in `top -d`.

2018-05-03 Thread enh
LTP uses `top -d 0.1`, which isn't convincingly useful, but general support for other time units might be useful, and switching to xparsetime addresses both at once. Also fix 3169d948c049664bcf7216d4c4ae751881099d3e where I mistakenly treated `rev` and `toys.optflags&FLAG_b` as interchangeable. (W