From e8db984ce5997ffabafab2584fa7f00789ff3afd Mon Sep 17 00:00:00 2001 From: Thomas Dziedzic Date: Thu, 2 Feb 2012 16:43:40 -0600 Subject: 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 --- src/pacman/callback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pacman/callback.c') diff --git a/src/pacman/callback.c b/src/pacman/callback.c index c7c16949..344f6a58 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -693,8 +693,8 @@ void cb_dl_progress(const char *filename, off_t file_xfered, off_t file_total) } - rate_human = humanize_size((off_t)rate, '\0', &rate_label); - xfered_human = humanize_size(xfered, '\0', &xfered_label); + rate_human = humanize_size((off_t)rate, '\0', -1, &rate_label); + xfered_human = humanize_size(xfered, '\0', -1, &xfered_label); printf(" %ls%-*s ", wcfname, padwid, ""); /* We will show 1.62M/s, 11.6M/s, but 116K/s and 1116K/s */ -- cgit v1.2.3-24-g4f1b