ChunksReadUseful Count
ChunksReadWasted Count
+ MetadataChunksRead Count
+
// Number of pieces data was written to, that subsequently passed verification.
PiecesDirtiedGood Count
// Number of pieces data was written to, that subsequently failed
}
func (cs *ConnStats) readMsg(msg *pp.Message) {
+ // We want to also handle extended metadata pieces here, but we wouldn't
+ // have decoded the extended payload yet.
switch msg.Type {
case pp.Piece:
cs.ChunksRead.Add(1)