From 4d8abf16d1369534f750fdbed43edb2db67fa4ff Mon Sep 17 00:00:00 2001 From: wangchengming <15110151257@163.com> Date: Sat, 19 Apr 2025 22:50:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3cpu=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E7=BC=BA=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/Analysis.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/dashboard/Analysis.vue b/src/views/dashboard/Analysis.vue index cdd406e..bc887fc 100644 --- a/src/views/dashboard/Analysis.vue +++ b/src/views/dashboard/Analysis.vue @@ -267,9 +267,9 @@ export default { let minutes = date.getMinutes(); let xlable = hours + ':' + minutes this.cpuInfo.cpuCoreCount = res.result.cpuCoreCount - this.userCpuUsage = res.result.userCpuUsage - this.systemCpuUsage = res.result.systemCpuUsage - this.idleCpuUsage = res.result.idleCpuUsage + this.cpuInfo.userCpuUsage = res.result.userCpuUsage + this.cpuInfo.systemCpuUsage = res.result.systemCpuUsage + this.cpuInfo.idleCpuUsage = res.result.idleCpuUsage this.cpuInfo.chartDate.xData.push(xlable) this.cpuInfo.chartDate.y1Data.push(res.result.userCpuUsage) this.cpuInfo.chartDate.y2Data.push(res.result.systemCpuUsage)