Xinqi Bao's Git
projects
/
slstatus.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(from:
46c4540
)
Implement fmt_human_2() and fmt_human_10()
author
Laslo Hunhold <
[email protected]
>
Sat, 19 May 2018 20:52:17 +0000
(22:52 +0200)
committer
Aaron Marcher <
[email protected]
>
Sat, 19 May 2018 20:58:21 +0000
(22:58 +0200)
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.
No differences found