aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/lsof.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-09-03 20:36:44 -0500
committerRob Landley <rob@landley.net>2015-09-03 20:36:44 -0500
commitd06ea3708d12e3e87fa26441715ac47f6dc63032 (patch)
tree18a517dd614a27ec99b36f51822a90d3a1155736 /toys/pending/lsof.c
parent5640847b0328c5319f353eed985781e166547ef7 (diff)
downloadtoybox-d06ea3708d12e3e87fa26441715ac47f6dc63032.tar.gz
Make human_readable() handle base 1024 units without floating point.
Rounds correctly via brute force, displayed digits are decimal even when working with powers of 2, shows at most 3 significant (decimal) digits. (So no "1023M" nonsense, that's 1.0G.)
Diffstat (limited to 'toys/pending/lsof.c')
0 files changed, 0 insertions, 0 deletions