From: Matt Joiner Date: Wed, 3 May 2023 06:40:51 +0000 (+1000) Subject: Include count of peer conns in status X-Git-Url: http://www.git.stargrave.org/?p=btrtrc.git;a=commitdiff_plain;h=20b437730ddd9862348871516aa2f4ca5433d959 Include count of peer conns in status --- diff --git a/torrent.go b/torrent.go index c5af556d..5d78f390 100644 --- a/torrent.go +++ b/torrent.go @@ -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 }))