2
0
mirror of synced 2025-02-23 14:18:13 +00:00

Include count of peer conns in status

This commit is contained in:
Matt Joiner 2023-05-03 16:40:51 +10:00
parent 12db16c478
commit 20b437730d
No known key found for this signature in database
GPG Key ID: 6B990B8185E7F782

View File

@ -785,7 +785,7 @@ func (t *Torrent) writeStatus(w io.Writer) {
return ml.Less()
})
fmt.Fprintf(w, "peer conns:\n")
fmt.Fprintf(w, "%v peer conns:\n", len(peerConns))
t.writePeerStatuses(w, g.SliceMap(peerConns, func(pc *PeerConn) *Peer {
return &pc.Peer
}))