commit | d06ea3708d12e3e87fa26441715ac47f6dc63032 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Thu Sep 03 20:36:44 2015 -0500 |
committer | Rob Landley <rob@landley.net> | Thu Sep 03 20:36:44 2015 -0500 |
tree | 18a517dd614a27ec99b36f51822a90d3a1155736 | |
parent | 5640847b0328c5319f353eed985781e166547ef7 [diff] |
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.)