index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-08-24 21:52:32 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-25 16:09:52 -0500 |
commit | 30cad47fb91dec0748551cb7d8607871b95785e5 (patch) | |
tree | 6b31d7ba31067365d598149b390cb63b77379cc5 /src | |
parent | f7a3c4c8df95ad99e05dfd29c61d6877b13b09da (diff) |
-rw-r--r-- | src/pacman/util.c | 6 |
diff --git a/src/pacman/util.c b/src/pacman/util.c index d2aa29b9..fbc51eba 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -916,8 +916,10 @@ static char *pkg_get_location(alpm_pkg_t *pkg) double humanize_size(off_t bytes, const char target_unit, int long_labels, const char **label) { - static const char *shortlabels[] = {"B", "K", "M", "G", "T", "P"}; - static const char *longlabels[] = {"B", "KiB", "MiB", "GiB", "TiB", "PiB"}; + static const char *shortlabels[] = {"B", "K", "M", "G", + "T", "P", "E", "Z", "Y"}; + static const char *longlabels[] = {"B", "KiB", "MiB", "GiB", + "TiB", "PiB", "EiB", "ZiB", "YiB"}; static const int unitcount = sizeof(shortlabels) / sizeof(shortlabels[0]); const char **labels = long_labels ? longlabels : shortlabels; |