Skip to content

fix(metrics): correct CPU load calculation formula #319

Merged
bittcrafter merged 3 commits intormqtt:masterfrom
bittcrafter:dev/0.17.0
Oct 17, 2025
Merged

fix(metrics): correct CPU load calculation formula #319
bittcrafter merged 3 commits intormqtt:masterfrom
bittcrafter:dev/0.17.0

Conversation

@bittcrafter
Copy link
Copy Markdown
Collaborator

No description provided.

* Remove incorrect aggregate2 calculation that was causing division by zero
* Simplify CPU load calculation to use aggregate1 * 100.0 directly
* Fix potential division by zero issue in previous implementation
* Maintain CPU load metric functionality with proper scaling
@bittcrafter bittcrafter changed the title Dev/0.17.0 fix(metrics): correct CPU load calculation formula Oct 17, 2025
@bittcrafter bittcrafter merged commit 3eeb38b into rmqtt:master Oct 17, 2025
10 checks passed
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.

1 participant