Fix typo in cb_progress
Introduced in74deada511
. Signed-off-by: Allan McRae <allan@archlinux.org> (cherry picked from commit27eba85594
)
This commit is contained in:
parent
b2bb2e2482
commit
71f522252e
1 changed files with 1 additions and 1 deletions
|
@ -590,7 +590,7 @@ void cb_progress(void *ctx, alpm_progress_t event, const char *pkgname,
|
||||||
} else {
|
} else {
|
||||||
if(current != prevcurrent) {
|
if(current != prevcurrent) {
|
||||||
/* update always */
|
/* update always */
|
||||||
} else if(has_pkgname || percent == prevpercent ||
|
} else if(!has_pkgname || percent == prevpercent ||
|
||||||
get_update_timediff(0) < UPDATE_SPEED_MS) {
|
get_update_timediff(0) < UPDATE_SPEED_MS) {
|
||||||
/* only update the progress bar when we have a package name, the
|
/* only update the progress bar when we have a package name, the
|
||||||
* percentage has changed, and it has been long enough. */
|
* percentage has changed, and it has been long enough. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue