Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rounded ETAs for long tasks #278

Closed
magiraud opened this issue Aug 27, 2024 · 4 comments
Closed

Rounded ETAs for long tasks #278

magiraud opened this issue Aug 27, 2024 · 4 comments
Milestone

Comments

@magiraud
Copy link

alive-progress is a fantastic tool, thank you!

On a long task, my bar display something like 101/456 [22%] in 26:09 (~1:32:15, 0.1/s)

The current ETA provides a estimate with updates down to the second (1:32:15) and... this is constantly changing. This level of precision seems unnecessary and may draw undue attention to what is not really meaningful. A more rounded ETA could be more "stable" (here 1:32:00) and less distracting, as for example:

  • Round ETAs between 1 minute and 1 hour to the nearest 10 seconds.
  • Round ETAs above 1 hours to the nearest minute.

This would offer a more user-friendly and less intrusive display of time estimates.

@rsalmei
Copy link
Owner

rsalmei commented Aug 28, 2024

alive-progress is a fantastic tool, thank you!

Thanks, man!

Yeah, I see... That is actually a great suggestion!
I have been thinking about a similar request: #247, but I'm kind of stuck there. I know I do need to improve the ETA for long-running tasks.
I'll think about it.

@rsalmei rsalmei added this to the 3.2 milestone Oct 24, 2024
@rsalmei
Copy link
Owner

rsalmei commented Oct 24, 2024

Hi @magiraud,
I'm finally releasing this, thanks for your patience.

@rsalmei rsalmei closed this as completed Oct 26, 2024
@magiraud
Copy link
Author

Excellent, thank you @rsalmei! So it was 21b88ab.

@rsalmei
Copy link
Owner

rsalmei commented Oct 26, 2024

Yep, not that simple, but I liked the effect.
You're welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants