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

Fix rounding error when displaying the timestamp in debug mode #5912

Merged

Conversation

kit-ty-kate
Copy link
Member

@kit-ty-kate kit-ty-kate commented Apr 8, 2024

Fixes #5910

Printf.printf "%f" rounds up so above 30s (30 / 60) rounds up to 1m

Noticed by David during today's dev meeting

@rjbou rjbou added the KIND: BUG label May 2, 2024
Printf.printf "%f" rounds up so above 30s (30 / 60) rounds up to 1m
@kit-ty-kate kit-ty-kate force-pushed the fix-wrong-rounding-debug-timestamp branch from 9f2b37d to fd6cdd7 Compare May 2, 2024 14:45
@kit-ty-kate kit-ty-kate merged commit bff312b into ocaml:master May 3, 2024
29 checks passed
@kit-ty-kate kit-ty-kate deleted the fix-wrong-rounding-debug-timestamp branch May 3, 2024 08:10
@kit-ty-kate kit-ty-kate added this to the 2.2.0~beta3 milestone May 3, 2024
@kit-ty-kate kit-ty-kate added this to Done in Opam 2.2.0 May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Opam 2.2.0
  
Done
Development

Successfully merging this pull request may close these issues.

debug timing are sometimes incorrect
3 participants