Changeset 2961
- Timestamp:
- Sep 1, 2007, 2:56:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.8x/libtransmission/inout.c
r2958 r2961 302 302 { 303 303 int i; 304 304 int ret; 305 305 tr_torrent_t * tor = io->tor; 306 306 const int success = !checkPiece( tor, pieceIndex ); 307 307 308 if( success ) 308 309 { 309 tr_ inf( "Piece %d hash OK", pieceIndex );310 tr_dbg( "Piece %d hash OK", pieceIndex ); 310 311 tr_cpPieceAdd( tor->completion, pieceIndex ); 312 ret = TR_OK; 311 313 } 312 314 else … … 314 316 tr_err( "Piece %d hash FAILED", pieceIndex ); 315 317 tr_cpPieceRem( tor->completion, pieceIndex ); 316 ret urnTR_ERROR;318 ret = TR_ERROR; 317 319 } 318 320 319 321 /* Assign blame or credit to peers */ 320 for( i = 0; i <tor->peerCount; ++i )322 for( i=0; i<tor->peerCount; ++i ) 321 323 tr_peerBlame( tor->peers[i], pieceIndex, success ); 322 324 323 return 0;324 } 325 return ret; 326 }
Note: See TracChangeset
for help on using the changeset viewer.