summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/trans.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-25 04:55:56 +0200
committerDan McGee <dan@archlinux.org>2011-08-25 23:09:52 +0200
commit73fcf17041cf00e0b6c3082bd354b8eaab412dab (patch)
treeda0ee94c0fcc8a3825a3ac6ef51cc7688c6e3951 /lib/libalpm/trans.h
parent30cad47fb91dec0748551cb7d8607871b95785e5 (diff)
downloadpacman-73fcf17041cf00e0b6c3082bd354b8eaab412dab.tar.gz
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 'lib/libalpm/trans.h')
0 files changed, 0 insertions, 0 deletions