From f5f67b50233d032b2e9eeb9a039455f7ed658c21 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 28 Feb 2025 19:43:54 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B3=A8=E9=87=8A=E6=8E=89?= =?UTF-8?q?=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=E5=86=85=E5=AD=98=E5=92=8C?= =?UTF-8?q?CPU=E4=BD=BF=E7=94=A8=E7=8E=87=E8=AE=A1=E7=AE=97=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/configManage/neOverview/index.vue | 28 ++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/views/configManage/neOverview/index.vue b/src/views/configManage/neOverview/index.vue index 4eaed767..c5288206 100644 --- a/src/views/configManage/neOverview/index.vue +++ b/src/views/configManage/neOverview/index.vue @@ -232,23 +232,23 @@ function fnTableSelectedRowKeys(keys: (string | number)[]) { } tableState.selectedRowKeys = keys; // Mem 将KB转换为MB - const totalMemInKB = neState.mem?.totalMem; - const nfUsedMemInKB = neState.mem?.nfUsedMem; - const sysMemUsageInKB = neState.mem?.sysMemUsage; - const totalMemInMB = Math.round((totalMemInKB / 1024) * 100) / 100; - const nfUsedMemInMB = Math.round((nfUsedMemInKB / 1024) * 100) / 100; - const sysMemUsageInMB = Math.round((sysMemUsageInKB / 1024) * 100) / 100; + // const totalMemInKB = neState.mem?.totalMem; + // const nfUsedMemInKB = neState.mem?.nfUsedMem; + // const sysMemUsageInKB = neState.mem?.sysMemUsage; + // const totalMemInMB = Math.round((totalMemInKB / 1024) * 100) / 100; + // const nfUsedMemInMB = Math.round((nfUsedMemInKB / 1024) * 100) / 100; + // const sysMemUsageInMB = Math.round((sysMemUsageInKB / 1024) * 100) / 100; // CPU - const nfCpu = neState.cpu?.nfCpuUsage; - const sysCpu = neState.cpu?.sysCpuUsage; - const nfCpuP = Math.round(nfCpu) / 100; - const sysCpuP = Math.round(sysCpu) / 100; + // const nfCpu = neState.cpu?.nfCpuUsage; + // const sysCpu = neState.cpu?.sysCpuUsage; + // const nfCpuP = Math.round(nfCpu) / 100; + // const sysCpuP = Math.round(sysCpu) / 100; serverState.value = Object.assign( { - cpuUse: `NE:${nfCpuP}%; SYS:${sysCpuP}%`, - memoryUse: `Total: ${totalMemInMB}MB; NE: ${nfUsedMemInMB}MB; SYS: ${sysMemUsageInMB}MB`, + // cpuUse: `NE:${nfCpuP}%; SYS:${sysCpuP}%`, + // memoryUse: `Total: ${totalMemInMB}MB; NE: ${nfUsedMemInMB}MB; SYS: ${sysMemUsageInMB}MB`, }, neState ); @@ -369,12 +369,12 @@ onBeforeUnmount(() => { {{ serverState.capability }} - + {{ serverState.sn }}