Skip to content

Commit

Permalink
feat: update cpu usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Jan 13, 2023
1 parent 5736f3b commit 7f276cf
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/components/AndroidPerfChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ const getCpuDataGroup = () => {
for (const j in props.sysPerf[i].cpuInfo.cpu) {
result.push({
type: 'line',
stack: 'Total',
name: j,
data: props.sysPerf.map((obj) => {
if (obj.cpuInfo) {
Expand Down Expand Up @@ -149,17 +148,7 @@ const getCpuGroup = () => {
name: j,
data: props.sysPerf.map((obj) => {
if (obj.cpuInfo) {
return (
obj.cpuInfo[j].user +
obj.cpuInfo[j].system +
obj.cpuInfo[j].steal +
obj.cpuInfo[j].softIrq +
obj.cpuInfo[j].nice +
obj.cpuInfo[j].irq +
obj.cpuInfo[j].iowait +
obj.cpuInfo[j].idle +
obj.cpuInfo[j].guest
);
return obj.cpuInfo[j].cpuUsage;
}
return 0;
}),
Expand Down

0 comments on commit 7f276cf

Please sign in to comment.