Skip to content

Use width to truncate HumanFloatCount values#696

Merged
djc merged 2 commits intoconsole-rs:mainfrom
ReagentX:feat/cs/allow-precision-in-human-float-count
Mar 20, 2025
Merged

Use width to truncate HumanFloatCount values#696
djc merged 2 commits intoconsole-rs:mainfrom
ReagentX:feat/cs/allow-precision-in-human-float-count

Conversation

@ReagentX
Copy link
Contributor

@ReagentX ReagentX commented Mar 18, 2025

Examples:

"{spinner:.green} [{elapsed}] [{bar:.blue}] {human_pos}/{human_len} ({per_sec:0}, ETA: {eta})":

image

"{spinner:.green} [{elapsed}] [{bar:.blue}] {human_pos}/{human_len} ({per_sec:4}, ETA: {eta})":

image

@djc djc changed the title Resolve #485 and #663 Use width to truncate HumanFloatCount values Mar 20, 2025
@djc djc merged commit abd2181 into console-rs:main Mar 20, 2025
10 checks passed
@djc
Copy link
Member

djc commented Mar 20, 2025

Thanks!

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.

Unnecessary hard coded precision in HumanFloatCount

2 participants