diff options
author | Rob Landley <rob@landley.net> | 2015-09-03 20:36:44 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-09-03 20:36:44 -0500 |
commit | d06ea3708d12e3e87fa26441715ac47f6dc63032 (patch) | |
tree | 18a517dd614a27ec99b36f51822a90d3a1155736 /tests/losetup.test | |
parent | 5640847b0328c5319f353eed985781e166547ef7 (diff) | |
download | toybox-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 'tests/losetup.test')
0 files changed, 0 insertions, 0 deletions