diff options
author | Dan McGee <dan@archlinux.org> | 2011-08-24 21:55:56 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-25 16:09:52 -0500 |
commit | 73fcf17041cf00e0b6c3082bd354b8eaab412dab (patch) | |
tree | da0ee94c0fcc8a3825a3ac6ef51cc7688c6e3951 /src/util/pacsort.c | |
parent | 30cad47fb91dec0748551cb7d8607871b95785e5 (diff) | |
download | pacman-73fcf17041cf00e0b6c3082bd354b8eaab412dab.tar.xz |
Slight refresh of the download progress callback
This cleans up some of the mess we have here.
* switch to long units for the download size
* omit the .0 decimal part from the download rate
* omit the almost always zero HH: from estimated time if eta_h == 0
* Display --:-- if eta_h > 99; formatting was screwed up before
The net result of this is we usually have 1 more character to use for
filename display.
Before:
extra 500.9K 1242.4K/s 00:00:00 [######################] 100%
community-testing 947.0B 28.2M/s 00:00:00 [######################] 100%
multilib 26.5K 405.1K/s 00:00:00 [######################] 100%
community 450.6K 1238.3K/s 00:00:00 [######################] 100%
After:
extra 500.9 KiB 1118K/s 00:00 [######################] 100%
community-testing 947.0 B 23M/s 00:00 [######################] 100%
multilib 26.5 KiB 255K/s 00:00 [######################] 100%
community 450.6 KiB 1211K/s 00:00 [######################] 100%
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/util/pacsort.c')
0 files changed, 0 insertions, 0 deletions