From 64268e5436a600165e6b1905d1d0dd8c4dcf69b0 Mon Sep 17 00:00:00 2001 From: Francisco Gouveia Date: Wed, 27 Aug 2025 16:56:02 +0100 Subject: [PATCH] fix(downloads): report real elapsed time of a component downloads instead of cumulative Before this commit, if RUSTUP_CONCURRENT_DOWNLOADS < 6, the timer for the components download would start at the same time for every one of them instead of just starting when the actual download begins. --- src/cli/download_tracker.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli/download_tracker.rs b/src/cli/download_tracker.rs index 2c676defed..871b8b3045 100644 --- a/src/cli/download_tracker.rs +++ b/src/cli/download_tracker.rs @@ -81,6 +81,7 @@ impl DownloadTracker { /// Sets the length for a new ProgressBar and gives it a style. pub(crate) fn content_length_received(&mut self, content_len: u64, url: &str) { if let Some(pb) = self.file_progress_bars.get(url) { + pb.reset(); pb.set_length(content_len); } }