Fix typo in cb_progress

Introduced in 74deada511.

Signed-off-by: Allan McRae <allan@archlinux.org>
(cherry picked from commit 27eba85594)
This commit is contained in:
Allan McRae 2024-04-02 23:18:30 +10:00
parent b2bb2e2482
commit 71f522252e

View file

@ -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. */