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)); + } }); });