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

Over-the-top precision in reporting times #337

Closed
michaelpj opened this issue Jul 4, 2024 · 0 comments · Fixed by #340
Closed

Over-the-top precision in reporting times #337

michaelpj opened this issue Jul 4, 2024 · 0 comments · Fixed by #340
Assignees
Labels
enhancement New feature or request

Comments

@michaelpj
Copy link

Describe the bug

When treefmt reports times it seems to report somewhere between 5 and 9 decimal places beyond the seconds. This is silly. I would follow e.g. time and use at most 2 decimal places.

e.g.

INFO format | terraform: 71 files processed in 208.27347ms

vs

INFO format | terraform: 71 files processed in 208.27ms

Even better, use 2 decimal places when reporting seconds, and 0 decimal places when reporting ms (nobody cares about the microseconds!).

@michaelpj michaelpj added the bug Something isn't working label Jul 4, 2024
brianmcgee added a commit that referenced this issue Jul 4, 2024
@brianmcgee brianmcgee added enhancement New feature or request and removed bug Something isn't working labels Jul 4, 2024
@brianmcgee brianmcgee self-assigned this Jul 4, 2024
@brianmcgee brianmcgee mentioned this issue Jul 4, 2024
1 task
@mergify mergify bot closed this as completed in #340 Jul 5, 2024
@mergify mergify bot closed this as completed in a642145 Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants