mirror of
https://github.com/transmission/transmission
synced 2025-02-03 04:53:27 +00:00
more assertion tests to tr_peerGotBlockFromUs() and tr_peerSentBlockToUs() to smoke out any remaining spurious ul/dl bytecounts
This commit is contained in:
parent
bcb3cf99ab
commit
9c73ecbf63
1 changed files with 2 additions and 0 deletions
|
@ -828,6 +828,7 @@ tr_peerSentBlockToUs ( tr_peer_t * peer, int byteCount )
|
|||
tr_torrent_t * tor = peer->tor;
|
||||
|
||||
assert( byteCount >= 0 );
|
||||
assert( byteCount <= tor->info.pieceSize );
|
||||
|
||||
tor->downloadedCur += byteCount;
|
||||
tr_rcTransferred( peer->download, byteCount );
|
||||
|
@ -844,6 +845,7 @@ tr_peerGotBlockFromUs ( tr_peer_t * peer, int byteCount )
|
|||
tr_torrent_t * tor = peer->tor;
|
||||
|
||||
assert( byteCount >= 0 );
|
||||
assert( byteCount <= tor->info.pieceSize );
|
||||
|
||||
tor->uploadedCur += byteCount;
|
||||
tr_rcTransferred( peer->upload, byteCount );
|
||||
|
|
Loading…
Reference in a new issue