console-rs / indicatif

A command line progress reporting library for Rust
MIT License
4.46k stars 243 forks source link

resetting the elapsed time also resets ETA #538

Closed afontenot closed 1 year ago

afontenot commented 1 year ago

It makes sense to reset the ETA without resetting the time elapsed back to zero, but when setting the time elapsed back to zero, the ETA should also be reset as this should make the progress bar behave as if it had just been activated (in a partially complete state).

Fixes https://github.com/console-rs/indicatif/issues/536.

djc commented 1 year ago

@chris-laplante further feedback welcome!