Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
@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.

2 participants