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

Rob Landley rob at landley.net
Sun May 6 08:25:41 PDT 2018


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, &arg, 10);

Locally in my tree for a while, but hadn't quite figured out if it was worth it
or would break stuff. *shrug* Backed it out so I could apply this...

Rob



More information about the Toybox mailing list