Skip to content

Commit 63b4e21

Browse files
FranciscoTGouveiarami3l
authored andcommitted
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.
1 parent 945db8c commit 63b4e21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cli/download_tracker.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ impl DownloadTracker {
8181
/// Sets the length for a new ProgressBar and gives it a style.
8282
pub(crate) fn content_length_received(&mut self, content_len: u64, url: &str) {
8383
if let Some(pb) = self.file_progress_bars.get(url) {
84+
pb.reset();
8485
pb.set_length(content_len);
8586
}
8687
}

0 commit comments

Comments
 (0)