summaryrefslogtreecommitdiffstats
path: root/src/pacman/callback.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-25 05:13:26 +0200
committerDan McGee <dan@archlinux.org>2011-08-25 23:09:52 +0200
commit0ee3ce70a88a42387d19f0d58901fda21b0161b7 (patch)
tree29ed77f1f94445fd92351f3fcc2e3af2891eed1c /src/pacman/callback.c
parent73fcf17041cf00e0b6c3082bd354b8eaab412dab (diff)
downloadpacman-0ee3ce70a88a42387d19f0d58901fda21b0161b7.tar.gz
pacman-0ee3ce70a88a42387d19f0d58901fda21b0161b7.tar.xz
Remove short/long label distinction
We only used short labels in one place, and the short label is always the first character of the long label anyway. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/callback.c')
-rw-r--r--src/pacman/callback.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 63f7b559..04b3a527 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -663,12 +663,12 @@ void cb_dl_progress(const char *filename, off_t file_xfered, off_t file_total)
}
- rate_human = humanize_size((off_t)rate, '\0', 0, &rate_label);
- xfered_human = humanize_size(xfered, '\0', 1, &xfered_label);
+ rate_human = humanize_size((off_t)rate, '\0', &rate_label);
+ xfered_human = humanize_size(xfered, '\0', &xfered_label);
printf(" %ls%-*s ", wcfname, padwid, "");
- printf("%6.1f %3s %4.f%s/s ",
- xfered_human, xfered_label, rate_human, rate_label);
+ printf("%6.1f %3s %4.f%c/s ",
+ xfered_human, xfered_label, rate_human, rate_label[0]);
if(eta_h == 0) {
printf("%02u:%02u", eta_m, eta_s);
} else if(eta_h < 100) {