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

enh enh at google.com
Sat May 5 12:15:01 PDT 2018


ping?

On Thu, May 3, 2018 at 3:25 PM, enh <enh at google.com> 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
> treated `rev` and `toys.optflags&FLAG_b` as interchangeable. (Without
> this second fix, `top -b` looks fine but `top` is broken!)
>
> Also fix xparsetime to reject input such as "monkey" or "1monkey".
> ---
>  lib/xwrap.c     | 10 +++++++---
>  tests/top.test  |  6 ++++++
>  toys/posix/ps.c | 23 +++++++++++++++--------
>  3 files changed, 28 insertions(+), 11 deletions(-)
>



More information about the Toybox mailing list