summaryrefslogtreecommitdiffstats
path: root/src/pacman/package.c
diff options
context:
space:
mode:
authorThomas Dziedzic <gostrc@gmail.com>2012-02-02 23:43:40 +0100
committerDan McGee <dan@archlinux.org>2012-02-03 15:56:16 +0100
commite8db984ce5997ffabafab2584fa7f00789ff3afd (patch)
tree6abb30cc39e1a4e536b2d29433738c6b49734a2d /src/pacman/package.c
parent47313acee48029bfdd1ee34bf1947b962ccff283 (diff)
downloadpacman-e8db984ce5997ffabafab2584fa7f00789ff3afd.tar.gz
pacman-e8db984ce5997ffabafab2584fa7f00789ff3afd.tar.xz
Fix FS#27924: don't display negative zeroes
Dan: don't compute lower bound unless needed, flip argument order so out values are last, add param Doxygen documentation. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/package.c')
-rw-r--r--src/pacman/package.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pacman/package.c b/src/pacman/package.c
index 12f555a1..97d89688 100644
--- a/src/pacman/package.c
+++ b/src/pacman/package.c
@@ -119,14 +119,14 @@ void dump_pkg_full(alpm_pkg_t *pkg, int extra)
deplist_display(_("Conflicts With :"), alpm_pkg_get_conflicts(pkg));
deplist_display(_("Replaces :"), alpm_pkg_get_replaces(pkg));
- size = humanize_size(alpm_pkg_get_size(pkg), 'K', &label);
+ size = humanize_size(alpm_pkg_get_size(pkg), 'K', 2, &label);
if(from == PKG_FROM_SYNCDB) {
printf(_("Download Size : %6.2f %s\n"), size, label);
} else if(from == PKG_FROM_FILE) {
printf(_("Compressed Size: %6.2f %s\n"), size, label);
}
- size = humanize_size(alpm_pkg_get_isize(pkg), 'K', &label);
+ size = humanize_size(alpm_pkg_get_isize(pkg), 'K', 2, &label);
printf(_("Installed Size : %6.2f %s\n"), size, label);
string_display(_("Packager :"), alpm_pkg_get_packager(pkg));