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 timer metric #8270

Merged
merged 1 commit into from Jul 21, 2023
Merged

Fix timer metric #8270

merged 1 commit into from Jul 21, 2023

Conversation

ghostdogpr
Copy link
Member

There was a division between Long, and the result was then converted to Double.
Instead, we should do a Double division to not lose any precision.

This bug was particularly visible when using ChronoUnit.SECONDS with times that are under a second: they all ended up to be zero.

@adamgfraser adamgfraser merged commit e7e5ff6 into zio:series/2.x Jul 21, 2023
22 checks passed
@ghostdogpr ghostdogpr deleted the fix-timer-metric branch July 21, 2023 07:21
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