Skip to content

Commit

Permalink
Update estimate when using a steady ticker
Browse files Browse the repository at this point in the history
  • Loading branch information
aawsome committed Dec 2, 2022
1 parent 25afbed commit f8fa278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/progress_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ impl TickerControl {
}

state.state.tick = state.state.tick.saturating_add(1);
state.draw(false, Instant::now()).ok();
state.update_estimate_and_draw(Instant::now());

drop(state); // Don't forget to drop the lock before sleeping
drop(arc); // Also need to drop Arc otherwise BarState won't be dropped
Expand Down

0 comments on commit f8fa278

Please sign in to comment.