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

A few quality of life visual changes #167

Merged
merged 4 commits into from
Oct 21, 2021
Merged

Conversation

humdogm
Copy link
Contributor

@humdogm humdogm commented Oct 21, 2021

These changes just make it so that the terminal line doesn't end up looking like:
Progress: |██████████████████████████████████████████████████| 100.0% Completector 7936 of 8192) 40.00 MB/s
at the end of writing and instead it looks like:
Progress: |██████████████████████████████████████████████████| 100.0% Write Complete (Sector 8192 of 8192)

Done so that terminal data remains static in the progress string when it
changes from e.g. 9.0 to 10.0
Length is fixed to total divided by sector size
Done so that terminal data remains static in the progress string when it
changes from e.g. 768 to 1024 sectors
Useful to clear previous data if line's length decreases
To keep consistency with original progress message and ensure users know
how many total sectors have been written.
@bkerler bkerler merged commit 62dc36a into bkerler:master Oct 21, 2021
@bkerler
Copy link
Owner

bkerler commented Oct 21, 2021

Very cool. Thanks a lot !

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.

None yet

2 participants