diff options
author | Thomas Dziedzic <gostrc@gmail.com> | 2012-02-02 16:43:40 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-02-03 08:56:16 -0600 |
commit | e8db984ce5997ffabafab2584fa7f00789ff3afd (patch) | |
tree | 6abb30cc39e1a4e536b2d29433738c6b49734a2d /src/pacman/callback.c | |
parent | 47313acee48029bfdd1ee34bf1947b962ccff283 (diff) |
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/callback.c')
-rw-r--r-- | src/pacman/callback.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |