private double percentageToGHz ( double cpuUsage ) { cpuUsage /= 100 ; cpuUsage /= ttUtilization . getNumCpu ( ) ; cpuUsage *= ttUtilization . getCpuTotalGHz ( ) ; return cpuUsage ; }
ps - eo pcpu gives per core % . We convert it to GHz