summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-12-11 12:21:24 -0500
committerDave Reisner <dreisner@archlinux.org>2011-12-11 12:21:24 -0500
commit05e3ad28c8c1818a28096f3650c07031774ce1d9 (patch)
tree2b94180fdebafc68ff4fd7a773d23b5fcccd2c1d
parent261c9a958100e9a9aeda5d976788199ddbe182a2 (diff)
downloadexpac-05e3ad28c8c1818a28096f3650c07031774ce1d9.tar.xz
remove KiB conversion for sizes
-rw-r--r--expac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/expac.c b/expac.c
index d36bd1e..4bcd601 100644
--- a/expac.c
+++ b/expac.c
@@ -446,10 +446,10 @@ static int print_pkg(alpm_pkg_t *pkg, const char *format) {
/* sizes */
case 'k': /* download size */
- out += printf("%.2f KiB", (float)alpm_pkg_get_size(pkg) / 1024.0);
+ out += printf("%s", alpm_pkg_get_size(pkg));
break;
case 'm': /* install size */
- out += printf("%.2f KiB", (float)alpm_pkg_get_isize(pkg) / 1024.0);
+ out += printf("%s", alpm_pkg_get_isize(pkg));
break;
/* lists */