diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 7f72b84..086b09d 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -754,6 +754,7 @@ void cb_dl_progress(const char *filename, off_t file_xfered, off_t file_total) eta_s = (total - xfered) / rate; } else { eta_s = UINT_MAX; + rate = 0.0; } rate_last = rate; xfered_last = xfered;