[Toybox] [PATCH] vmstat: increase column sizes

enh enh at google.com
Thu May 21 16:02:45 PDT 2020


I told him you'd say that 😀

In his defense -- and the reason why I suggested he just send as-is anyway
-- the procps vmstat doesn't fit in 80 columns on any of my machines *and*
doesn't line up. So toybox is getting 1/2 to their 0/2, and even if you did
auto-size the columns, it would help any contemporary
phone/laptop/desktop/server anyway, just the IoT folks.

On Thu, May 21, 2020, 15:50 Rob Landley <rob at landley.net> wrote:

> On 5/20/20 6:40 PM, Petri Gynther via Toybox wrote:
> > Increase memory:swpd,free,cache to 7 characters
> > Increase swap:si,so to 5 characters
> > Increase system:in,cs to 5 characters
> >
> > Sample output from Pixel 4 phone:
> > procs ------------memory------------ ----swap--- -----io---- ---system--
> ----cpu----
> >  r  b    swpd    free   buff   cache    si    so    bi    bo    in    cs
> us sy id wa
> >  4  0 1111676   87896   6328 2268596  8152 11896 10712 14280     0 25712
> 31 21 46  3
> > 17  0 1082788  224292   5972 2213996 73220 68908  2432  3948     1 26611
> 41 38 22  0
> >  6  0 1127316  203196   5972 2225164  8980 53996 11796   788     0 25200
> 33 22 45  1
> >  0  0 1133072  200984   5972 2225280   416  6260    52    88     0  8543
> 10  6 84  0
> >  2  0 1128976  196976   5972 2225692  3588     0   340   800     0
> 5243  5  4 91  0
>
> The result no longer fits in 80 columns. Every line wraps the screen.
>
> I've applied this, but I'm unhappy with the result.
>
> Rob
> _______________________________________________
> Toybox mailing list
> Toybox at lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200521/5e60bbd0/attachment.htm>


More information about the Toybox mailing list