diff --git a/src/download.rs b/src/download.rs index 5fd0be2a5e8498fc061f93046c2aee4f9d757e39..e5b15215906cf1df7ba1a3601ef7e0804e9b2142 100644 --- a/src/download.rs +++ b/src/download.rs @@ -35,6 +35,7 @@ pub fn download(remote_path: &str, local_path: &str) -> io::Result<()> { let mut file = File::create(&local_path)?; let mut pb = ProgressBar::new(length as u64); + pb.set_max_refresh_rate(Some(Duration::new(1, 0))); pb.set_units(Units::Bytes); loop { let mut buf = [0; 8192];