Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Conversation

@Dieterbe
Copy link
Contributor

No description provided.

woodsaj and others added 3 commits June 27, 2018 16:14
with large timeframes and/or large number of requests,
this could overflow.
example:

reqs := 500
tsRange := uint32(365 * 2 * 24 * 3600)
interval := uint32(1800)
fmt.Println(uint32(reqs) * tsRange / interval)
fmt.Println(uint32(reqs) * (tsRange / interval))

817349   <-- WRONG
17520000 <-- CORRECT
@Dieterbe Dieterbe force-pushed the fix-points-return-measurement-overflow branch from e8fbd11 to d59f8dd Compare June 27, 2018 20:15
@Dieterbe Dieterbe requested a review from replay June 27, 2018 22:09
@Dieterbe Dieterbe merged commit ee8e277 into master Jun 28, 2018
@Dieterbe Dieterbe deleted the fix-points-return-measurement-overflow branch September 18, 2018 08:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants