[Toybox] [PATCH] top: don't report GiB sizes in KiB.

enh enh at google.com
Wed Sep 2 10:01:33 PDT 2020


6 digits seems like a reasonable compromise for readability? That will
still give KiB on tiny systems, but MiB on reasonable systems. The
existing 8 digits gives numbers far too large to grok.

This also matches procps top on my machine, though maybe that's hard-coded
to always use MiB?
---
 toys/posix/ps.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200902/cd07647c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-top-don-t-report-GiB-sizes-in-KiB.patch
Type: text/x-patch
Size: 1703 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200902/cd07647c/attachment-0002.bin>


More information about the Toybox mailing list