From 319390f0c66289ea33fe6f370976e32242ab4993 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 15 Feb 2020 15:03:41 +1000 Subject: [PATCH] more frequent progress updates --- rslib/src/media/check.rs | 2 +- rslib/src/media/sync.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rslib/src/media/check.rs b/rslib/src/media/check.rs index 3c5f479a2..8e995c5e0 100644 --- a/rslib/src/media/check.rs +++ b/rslib/src/media/check.rs @@ -257,7 +257,7 @@ where fn maybe_fire_progress_cb(&mut self) -> Result<()> { 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(()); } self.progress_updated = now; diff --git a/rslib/src/media/sync.rs b/rslib/src/media/sync.rs index f12a9bbee..7ce57c126 100644 --- a/rslib/src/media/sync.rs +++ b/rslib/src/media/sync.rs @@ -388,7 +388,7 @@ where fn maybe_fire_progress_cb(&mut self) -> Result<()> { 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(()); } self.progress_updated = now;