index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Xavier Chantry <shiningxc@gmail.com> | 2008-08-11 23:32:36 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-08-13 21:13:10 -0500 |
commit | 89c2c51964d5e4f297e767befb56a65c18dc3d6f (patch) | |
tree | ad8e6a82939910cb3e8d734f45f0edc360c83728 | |
parent | a23fc08758cbbc7aa861eee2f537d4e1048bb039 (diff) |
-rw-r--r-- | src/pacman/callback.c | 4 |
diff --git a/src/pacman/callback.c b/src/pacman/callback.c index f968873f..b8e2d77e 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -139,8 +139,8 @@ static void fill_progress(const int bar_percent, const int disp_percent, } /* print percent after progress bar */ if(proglen > 5) { - /* use disp_percent if it is not 0, else show bar_percent */ - int p = disp_percent ? disp_percent : bar_percent; + /* show total download percent if option is enabled */ + int p = config->totaldownload ? disp_percent : bar_percent; printf(" %3d%%", p); } |