mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15:35 +08:00
fix(connections): limit closed connection items count below 100
This commit is contained in:
parent
b085cc059d
commit
f97f46720a
@ -112,7 +112,7 @@ export default () => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
setClosedConnectionsWithSpeed((prev) =>
|
setClosedConnectionsWithSpeed((prev) =>
|
||||||
[...prev, ...closedConnections].slice(-1000),
|
[...prev, ...closedConnections].slice(-100),
|
||||||
)
|
)
|
||||||
|
|
||||||
return connections.slice(-100)
|
return connections.slice(-100)
|
||||||
|
Loading…
Reference in New Issue
Block a user