diff --git a/android/perf/process.go b/android/perf/process.go index ae14d9f..7ed7a66 100644 --- a/android/perf/process.go +++ b/android/perf/process.go @@ -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