From a6b70e33a9f4369ae2cd05bb6f2a8ea273c1a873 Mon Sep 17 00:00:00 2001 From: dushixiang Date: Wed, 6 May 2026 23:42:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BD=91=E7=BB=9C=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E5=9B=BE=E8=A1=A8=20TS=20=E7=BC=96=E8=AF=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=8C=E4=BD=BF=E7=94=A8=E7=B1=BB=E5=9E=8B=E5=AE=88?= =?UTF-8?q?=E5=8D=AB=E6=9B=BF=E4=BB=A3=E4=B8=8D=E5=AE=89=E5=85=A8=E7=9A=84?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=96=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 (1M context) --- web/src/portal/components/server/NetworkConnectionChart.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/portal/components/server/NetworkConnectionChart.tsx b/web/src/portal/components/server/NetworkConnectionChart.tsx index c16b3d8..4dcf5af 100644 --- a/web/src/portal/components/server/NetworkConnectionChart.tsx +++ b/web/src/portal/components/server/NetworkConnectionChart.tsx @@ -61,7 +61,9 @@ export const NetworkConnectionChart = ({agentId, timeRange, start, end, isLive, }); } const existing = timeMap.get(point.timestamp)!; - (existing as Record)[stateName] = Number(point.value.toFixed(0)); + if (stateName === 'established' || stateName === 'time_wait' || stateName === 'close_wait' || stateName === 'listen') { + existing[stateName] = Number(point.value.toFixed(0)); + } }); });