Skip to content

Commit

Permalink
修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aoliaoaoaojiao committed May 16, 2024
1 parent dfc1b80 commit d29f988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/perf/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func getProcCpuUsage(stat *entity.ProcessStat, pcf *procCpuConfig, nowTotalCPUTi
return 0.0
}

cpuUtilization := ((nowProcCpuTime - pcf.preProcCpuTime) / (pcf.preTotalCpuTime - nowProcCpuTime)) * 100
cpuUtilization := ((nowProcCpuTime - pcf.preProcCpuTime) / (nowTotalCPUTime - pcf.preTotalCpuTime)) * 100
pcf.preProcCpuTime = nowProcCpuTime
pcf.preTotalCpuTime = nowTotalCPUTime

Expand Down

0 comments on commit d29f988

Please sign in to comment.