diff options
author | Xavier Chantry <shiningxc@gmail.com> | 2009-12-16 02:16:00 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-03-15 00:39:26 +0100 |
commit | e5dce888c09976f1ef4664613c742d0d015e534e (patch) | |
tree | 2e22c2160d19ab6ae59257f2967bf5cdcea72def /config.guess | |
parent | 087be2f1fbae2d7168732c7004d8963a3d9d21d8 (diff) | |
download | pacman-e5dce888c09976f1ef4664613c742d0d015e534e.tar.gz pacman-e5dce888c09976f1ef4664613c742d0d015e534e.tar.xz |
callback.c : less magic progress bars
1 - Explain magic numbers
2 - There was a weird off by 1 mess in the progress bar. The code supposedly
shared the width between 50 chars for text (textlen) and the rest for the
progress bar (proglen = getcols() - textlen).
But the code actually used textlen + 1 for the text and proglen - 1 for the
progress bar (with haslen=1, the progress bar was actually empty), which was
a bit confusing so I changed it.
Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'config.guess')
0 files changed, 0 insertions, 0 deletions