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: Fix CPU balancing where calculations are done in float instead of int. #93

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

gyptazy
Copy link
Owner

@gyptazy gyptazy commented Oct 11, 2024

fix: Fix CPU balancing where calculations are done in float instead of int.

This PR fixes handling of CPU based balancing by avoiding rounding issues treating the values in float instead of integer.
Thanks to @glitchvern by providing the patch and testing in #75.

Patch also passed by test runs, so we're good to go and may include this into the upcoming 1.0.4 release.

By: @glitchvern
Fixes: #75

@gyptazy gyptazy added the bug Something isn't working label Oct 11, 2024
@gyptazy gyptazy added this to the Release 1.0.4 milestone Oct 11, 2024
@gyptazy gyptazy self-assigned this Oct 11, 2024
@gyptazy gyptazy changed the title fix: Fix CPU balancing where calculations are done in float instead of string. fix: Fix CPU balancing where calculations are done in float instead of int. Oct 11, 2024
@gyptazy gyptazy force-pushed the fix/75-fix-cpu-balancing-calculations branch from 315327f to d44da07 Compare October 11, 2024 06:25
@gyptazy gyptazy merged commit 3cd631d into main Oct 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: CPU balancing may not work correctly (gathering metrics of node)
1 participant