Skip to content

Use current position for calculating finished progress bar per_sec instead of bar length#605

Merged
djc merged 1 commit intoconsole-rs:mainfrom
DanGonite57:abandon_persec
Jan 4, 2024
Merged

Use current position for calculating finished progress bar per_sec instead of bar length#605
djc merged 1 commit intoconsole-rs:mainfrom
DanGonite57:abandon_persec

Conversation

@DanGonite57
Copy link
Contributor

Fixes #601

Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

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

Sorry for the long delay in reviewing this -- I think it makes sense.

For future robustness, please consider submitting another PR that includes a test for this.

@djc djc merged commit 2a8b2ea into console-rs:main Jan 4, 2024
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.

per_sec values not retained when iteration exits early with ProgressFinish::Abandon

2 participants