more frequent progress updates

This commit is contained in:
Damien Elmes 2020-02-15 15:03:41 +10:00
parent 7d68da2b57
commit 319390f0c6
2 changed files with 2 additions and 2 deletions

View File

@ -257,7 +257,7 @@ where
fn maybe_fire_progress_cb(&mut self) -> Result<()> { fn maybe_fire_progress_cb(&mut self) -> Result<()> {
let now = Instant::now(); let now = Instant::now();
if now.duration_since(self.progress_updated).as_secs() < 1 { if now.duration_since(self.progress_updated).as_f64() < 0.15 {
return Ok(()); return Ok(());
} }
self.progress_updated = now; self.progress_updated = now;

View File

@ -388,7 +388,7 @@ where
fn maybe_fire_progress_cb(&mut self) -> Result<()> { fn maybe_fire_progress_cb(&mut self) -> Result<()> {
let now = Instant::now(); let now = Instant::now();
if now.duration_since(self.progress_updated).as_secs() < 1 { if now.duration_since(self.progress_updated).as_f64() < 0.15 {
return Ok(()); return Ok(());
} }
self.progress_updated = now; self.progress_updated = now;