From 27eba85594932a6e14faeca9ae40c9c5ebd7ea17 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 2 Apr 2024 23:18:30 +1000 Subject: [PATCH] Fix typo in cb_progress Introduced in 74deada511358a4ce9c10ee0c6ae216e2c6c6b73. Signed-off-by: Allan McRae --- src/pacman/callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 05604a90..b95ac98b 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -590,7 +590,7 @@ void cb_progress(void *ctx, alpm_progress_t event, const char *pkgname, } else { if(current != prevcurrent) { /* update always */ - } else if(has_pkgname || percent == prevpercent || + } else if(!has_pkgname || percent == prevpercent || get_update_timediff(0) < UPDATE_SPEED_MS) { /* only update the progress bar when we have a package name, the * percentage has changed, and it has been long enough. */