FS#26853 - pacman: terminal output wraps to next line when transfer rate is exactly 100 KB/s
Attached to Project:
Pacman
Opened by John Lindgren (jlindgren) - Friday, 11 November 2011, 21:30 GMT
Last edited by Allan McRae (Allan) - Friday, 11 November 2011, 22:27 GMT
Opened by John Lindgren (jlindgren) - Friday, 11 November 2011, 21:30 GMT
Last edited by Allan McRae (Allan) - Friday, 11 November 2011, 22:27 GMT
|
Details
Description:
This is a very minor problem, but since it's been around for a little while now and no one else seems to have noticed, I thought I'd mention it. When pacman is downloading packages, it tries to display one decimal place for transfer rates <100 KB/s and no decimal places for rates >100 KB/s. Currently, the boundary case of 100 KB/s is handled wrongly and shown with one decimal place, causing the text to wrap to the next line in an 80-column terminal. The result is the following (note the repeated lines for linux-3.1-4): :: Retrieving packages from core... module-init-tools-3... 363.8 KiB 142K/s 00:03 [######################] 100% udev-175-1-x86_64 211.9 KiB 112K/s 00:02 [######################] 100% linux-3.1-4-x86_64 25.0 MiB 100.0K/s 02:34 [#############---------] 62 linux-3.1-4-x86_64 34.2 MiB 100.0K/s 01:00 [##################----] 85 linux-3.1-4-x86_64 40.1 MiB 96.6K/s 07:05 [######################] 100% linux-headers-3.1-4... 4.5 MiB 107K/s 00:43 [######################] 100% mpfr-3.1.0.p3-1-x86_64 333.2 KiB 128K/s 00:03 [######################] 100% wpa_supplicant-0.7.... 248.1 KiB 132K/s 00:02 [######################] 100% Additional info: * package version(s) pacman 4.0.0-2 |
This task depends upon
Closed by Allan McRae (Allan)
Friday, 11 November 2011, 22:27 GMT
Reason for closing: Fixed
Additional comments about closing: http://projects.archlinux.org/pacman.git /commit/?h=maint&id=601c808b
Friday, 11 November 2011, 22:27 GMT
Reason for closing: Fixed
Additional comments about closing: http://projects.archlinux.org/pacman.git /commit/?h=maint&id=601c808b