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: use intermediate u64 to calculate average #3432

Merged

Conversation

therustmonk
Copy link
Contributor

Description

Calculates AverageLatency using u64 intermediate state.

Motivation and Context

If the samples are large enough the average sum can overflow. Using u64 makes this event less likely.

How Has This Been Tested?

Manually. Function only.

@aviator-app aviator-app bot merged commit ff6bc38 into tari-project:development Oct 7, 2021
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