diff --git a/src/pages/ServiceDashboard/OverviewTable.tsx b/src/pages/ServiceDashboard/OverviewTable.tsx index 0ada4a9d..ac8c9d10 100644 --- a/src/pages/ServiceDashboard/OverviewTable.tsx +++ b/src/pages/ServiceDashboard/OverviewTable.tsx @@ -15,6 +15,12 @@ import { calcNodeHealty } from '@/utils'; interface OverviewTableData { serviceName: string; + context_switches_total?: string; + count?: string; + cpu_seconds_total?: string; + open_filedesc_gauge?: string; + read_bytes_total?: string; + write_bytes_total?: string; } const metrics = [ @@ -174,13 +180,19 @@ function OverviewTable(props: IProps) { { title: intl.get('device.serviceResource.cpu_seconds_total'), dataIndex: "cpu_seconds_total", - render: (text, _) => renderCell(text, VALUE_TYPE.percentage, true), + render: (text, record) => { + if (record.count !== '1') { + return