From f8fa2785d5956ec9b4892fad46175c34df374c63 Mon Sep 17 00:00:00 2001 From: aawsome <37850842+aawsome@users.noreply.github.com> Date: Fri, 2 Dec 2022 23:39:51 +0100 Subject: [PATCH] Update estimate when using a steady ticker --- src/progress_bar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/progress_bar.rs b/src/progress_bar.rs index be69b012..faeb0c0f 100644 --- a/src/progress_bar.rs +++ b/src/progress_bar.rs @@ -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