Use messageTypesPosted.Piece
Begin: r.Begin,
Piece: b,
})
Begin: r.Begin,
Piece: b,
})
- uploadChunksPosted.Add(1)
c.lastChunkSent = time.Now()
return
}
c.lastChunkSent = time.Now()
return
}
peersAddedBySource = expvar.NewMap("peersAddedBySource")
peersAddedBySource = expvar.NewMap("peersAddedBySource")
- uploadChunksPosted = expvar.NewInt("uploadChunksPosted")
-
pieceHashedCorrect = expvar.NewInt("pieceHashedCorrect")
pieceHashedNotCorrect = expvar.NewInt("pieceHashedNotCorrect")
pieceHashedCorrect = expvar.NewInt("pieceHashedCorrect")
pieceHashedNotCorrect = expvar.NewInt("pieceHashedNotCorrect")