Skip to content

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 <suprehe@qq.com>
 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
Development

Successfully merging this pull request may close these issues.

[BUG]System Guard flow control | CPU thredshold| 系统自适应流控|以CPU作为阈值场景下的取值范围问题
2 participants