Include pending cancel count in peer status
This commit is contained in:
parent
aca3924c5e
commit
2f01dbab80
|
@ -366,13 +366,14 @@ func (cn *Peer) writeStatus(w io.Writer, t *Torrent) {
|
||||||
cn.totalExpectingTime(),
|
cn.totalExpectingTime(),
|
||||||
)
|
)
|
||||||
fmt.Fprintf(w,
|
fmt.Fprintf(w,
|
||||||
" %s completed, %d pieces touched, good chunks: %v/%v-%v reqq: %d/(%d/%d)-%d/%d, flags: %s, dr: %.1f KiB/s\n",
|
" %s completed, %d pieces touched, good chunks: %v/%v:%v reqq: %d-%v/(%d/%d):%d/%d, flags: %s, dr: %.1f KiB/s\n",
|
||||||
cn.completedString(),
|
cn.completedString(),
|
||||||
len(cn.peerTouchedPieces),
|
len(cn.peerTouchedPieces),
|
||||||
&cn._stats.ChunksReadUseful,
|
&cn._stats.ChunksReadUseful,
|
||||||
&cn._stats.ChunksRead,
|
&cn._stats.ChunksRead,
|
||||||
&cn._stats.ChunksWritten,
|
&cn._stats.ChunksWritten,
|
||||||
cn.actualRequestState.Requests.GetCardinality(),
|
cn.actualRequestState.Requests.GetCardinality(),
|
||||||
|
cn.cancelledRequests.GetCardinality(),
|
||||||
cn.nominalMaxRequests(),
|
cn.nominalMaxRequests(),
|
||||||
cn.PeerMaxRequests,
|
cn.PeerMaxRequests,
|
||||||
len(cn.peerRequests),
|
len(cn.peerRequests),
|
||||||
|
|
Loading…
Reference in New Issue