fix(connections): limit closed connection items count below 100

This commit is contained in:
kunish 2023-09-06 02:17:42 +08:00
parent b085cc059d
commit f97f46720a
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430

View File

@ -112,7 +112,7 @@ export default () => {
)
setClosedConnectionsWithSpeed((prev) =>
[...prev, ...closedConnections].slice(-1000),
[...prev, ...closedConnections].slice(-100),
)
return connections.slice(-100)