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:cpu rate error #554

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix:cpu rate error #554

wants to merge 1 commit into from

Conversation

erouss
Copy link

@erouss erouss commented Jan 22, 2024

Describe what this PR does / why we need it

fix getProcessCpuStat return value (in percentage) breaks compatibility.

Does this pull request fix one issue?

Fix #539

Describe how you did it

fix the bug that the CPU usage from getProcessCpuStat was changed to percentage value (i.e. 0-100), which breaks compatibility and affects system adaptive rules.

Describe how to verify it

Added a unit test func TestRetrieveAndUpdateCpuStatReturnValueRange(t *testing.T)

Special notes for reviews

@CLAassistant
Copy link

CLAassistant commented Jan 22, 2024

CLA assistant check
All committers have signed the CLA.

@erouss erouss force-pushed the master branch 2 times, most recently from d795a2a to 79a97d8 Compare January 22, 2024 06:07
 Author:    erouss <[email protected]>
 Date:      Mon Jan 22 11:39:30 2024 +0800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants