summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-10 16:31:15 +0200
committerAllan McRae <allan@archlinux.org>2011-09-11 05:45:59 +0200
commit4737a87b84742e6d704e1a59792aed9427cbf620 (patch)
tree43136257dcaf02458e6494c29a6efd1df3cd5a2f /scripts
parentf7653e582bc499b0c2d16968220c63615ddb9a56 (diff)
downloadpacman-4737a87b84742e6d704e1a59792aed9427cbf620.tar.gz
pacman-4737a87b84742e6d704e1a59792aed9427cbf620.tar.xz
download callback: show decimal places in rate if we have room
Display now looks like this, whereas before we would have just showed '2M/s' for the extra repository download. The cutoff is placed at 100.0 to ensure we only use 4 character slots of width (e.g. '99.9', '100'). :: Synchronizing package databases... testing 39.9 KiB 470K/s 00:00 [######################] 100% core 51.4 KiB 469K/s 00:00 [######################] 100% extra 768.8 KiB 2.1M/s 00:00 [######################] 100% community-testing 1941.0 B 54.4M/s 00:00 [######################] 100% multilib 26.6 KiB 458K/s 00:00 [######################] 100% community 449.8 KiB 1649K/s 00:00 [######################] 100% Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions