more frequent progress updates
This commit is contained in:
parent
7d68da2b57
commit
319390f0c6
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user