alibaba/sentinel-golang
[BUG] getProcessCpuStat return value (in percentage) breaks compatibility
Open
#435 opened on Nov 10, 2021
area/metricsgood first issuekind/bug
Repository metrics
- Stars
- (2,957 stars)
- PR merge metrics
- (PR metrics pending)
Description
Issue Description
Type: bug report
Describe what happened
getProcessCpuStat return value (in percentage) breaks compatibility. In previous implementation, the CPU usage representation is the value between [0.0, 1.0]. Since 1.0.x, the CPU usage from getProcessCpuStat was changed to percentage value (i.e. 0-100), which breaks compatibility and affects system adaptive rules.
Describe what you expected to happen
getProcessCpuStat keeps compatibility and unifys the CPU usage value to [0.0, 1.0]
Tell us your environment
Sentinel Go v1.0.3