Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-06-25 | paccache: adopt size_to_human | Dave Reisner | |
Signed-off-by: Dave Reisner <dreisner@archlinux.org> | |||
2012-06-25 | scripts/library: add size_to_human | Dave Reisner | |
This function is the reverse of human_to_size, and converts integer byte sizes to human readable SI prefixed values. A logical extension of this might be to mimic the formatter that pacman uses and allow a second argument to be passed in which can coerce the size, rather than reducing until the unit count is below 1024. Signed-off-by: Dave Reisner <dreisner@archlinux.org> |