Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2012-06-25 | paccache: adopt size_to_human | Dave Reisner | 1 | -0/+2 | |
Signed-off-by: Dave Reisner <dreisner@archlinux.org> | |||||
2012-06-25 | scripts/library: add size_to_human | Dave Reisner | 1 | -0/+20 | |
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> |