8000 feat(progress): show estimated time remaining by AK-Lmn · Pull Request #6 · osmanahmadxai/beemr · GitHub
[go: up one dir, main page]

Skip to content

feat(progress): show estimated time remaining - #6

Merged
osmanahmadxai merged 1 commit into
osmanahmadxai:mainfrom
AK-Lmn:feature/progress-eta
Oct 4, 2026
Merged

osmanahmadxai merged 1 commit into
osmanahmadxai:mainfrom
AK-Lmn:feature/progress-eta

Conversation

@AK-Lmn
@AK-Lmn AK-Lmn commented Oct 3, 2026
Copy link
Copy Markdown
Contributor

Closes #2

Summary of Changes

  • Adds an estimated time remaining indicator (e.g. ~1m 20s left) to the terminal progress bar once transfer rate is non-zero, hiding it when finished.
  • Formats duration using the existing crate::util::format_duration.
  • Tracks finished: bool in Progress so that the final draw upon completion clears the ETA text.
  • Adjusts BAR_WIDTH from 20 to 10 characters so that the entire line reliably stays $\le 80$ columns across all terminal widths.

@osmanahmadxai osmanahmadxai left a comment
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Reviewed and tested locally (fmt, clippy, all tests). The ETA is guarded against underflow and hidden on completion, and the narrower bar keeps the worst-case line (" ~59m 59s left" with 9-character sizes) within 80 columns.

@osmanahmadxai
osmanahmadxai merged commit 9374b66 into osmanahmadxai:main Oct 4, 2026
70C1
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

Successfully merging this pull request may close these issues.

Show estimated time remaining in the progress bar

2 participants

0