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

Avoid printing metrics as float point numbers #794

Merged
merged 1 commit into from
Feb 4, 2022
Merged

Conversation

ericwb
Copy link
Member

@ericwb ericwb commented Feb 4, 2022

The metrics in the output was displaying counts as floats instead
of integers. For example, 15.0 instead of 15. This is due to a
divide call using '/' instead of '//' which rounds down the answer.

We shouldn't have fractional number results anyway since the counts
are always divisible by the rank values.

Signed-off-by: Eric Brown browne@vmware.com

The metrics in the output was displaying counts as floats instead
of integers. For example, 15.0 instead of 15. This is due to a
divide call using '/' instead of '//' which rounds down the answer.

We shouldn't have fractional number results anyway since the counts
are always divisible by the rank values.

Signed-off-by: Eric Brown <browne@vmware.com>
@sigmavirus24 sigmavirus24 merged commit 4bc8155 into master Feb 4, 2022
@sigmavirus24 sigmavirus24 deleted the float branch February 4, 2022 13:22
This was referenced Feb 28, 2022
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