From: Laslo Hunhold Date: Sat, 19 May 2018 20:52:17 +0000 (+0200) Subject: Implement fmt_human_2() and fmt_human_10() X-Git-Url: https://git.xinqibao.xyz/slstatus.git/commitdiff_plain/46c4540dd2f6181e77b0800a4e007d78d0162487?ds=inline;hp=46c4540dd2f6181e77b0800a4e007d78d0162487 Implement fmt_human_2() and fmt_human_10() These functions take the raw number and a unit and automatically print it out "scaled down" to a proper SI-prefix, for powers of 2 and 10 respectively. Apply them to the 2-power cases and keep the 10-power for a later commit. ---