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 }}