Revert version back to 079 as per BentMyWookie's suggestion
This commit is contained in:
parent
caf68deb8f
commit
bcb3cf99ab
|
@ -191,10 +191,8 @@ struct tr_peer_s
|
|||
int inIndex;
|
||||
int inBegin;
|
||||
int inLength;
|
||||
uint64_t inTotal;
|
||||
|
||||
tr_list_t * outRequests;
|
||||
uint64_t outTotal;
|
||||
uint64_t outDate;
|
||||
|
||||
tr_ratecontrol_t * download;
|
||||
|
@ -581,9 +579,6 @@ writeBegin:
|
|||
if( ret > 0 )
|
||||
tr_peerGotBlockFromUs( peer, ret );
|
||||
|
||||
tor->uploadedCur += ret;
|
||||
peer->outTotal += ret;
|
||||
|
||||
date = tr_date();
|
||||
peer->outDate = date;
|
||||
|
||||
|
@ -832,6 +827,9 @@ tr_peerSentBlockToUs ( tr_peer_t * peer, int byteCount )
|
|||
{
|
||||
tr_torrent_t * tor = peer->tor;
|
||||
|
||||
assert( byteCount >= 0 );
|
||||
|
||||
tor->downloadedCur += byteCount;
|
||||
tr_rcTransferred( peer->download, byteCount );
|
||||
tr_rcTransferred( tor->download, byteCount );
|
||||
if ( !tor->customUploadLimit )
|
||||
|
@ -845,6 +843,9 @@ tr_peerGotBlockFromUs ( tr_peer_t * peer, int byteCount )
|
|||
{
|
||||
tr_torrent_t * tor = peer->tor;
|
||||
|
||||
assert( byteCount >= 0 );
|
||||
|
||||
tor->uploadedCur += byteCount;
|
||||
tr_rcTransferred( peer->upload, byteCount );
|
||||
tr_rcTransferred( tor->upload, byteCount );
|
||||
if ( !tor->customDownloadLimit )
|
||||
|
|
|
@ -310,7 +310,6 @@ static inline int parsePiece( tr_torrent_t * tor, tr_peer_t * peer,
|
|||
index, begin, len - 8 );
|
||||
|
||||
updateRequests( peer, index, begin );
|
||||
tor->downloadedCur += len - 8;
|
||||
|
||||
/* Sanity checks */
|
||||
if( len - 8 != tr_blockSize( block ) )
|
||||
|
|
|
@ -217,10 +217,8 @@ torrentRealInit( tr_handle_t * h,
|
|||
if( !h->isPortSet )
|
||||
tr_setBindPort( h, TR_DEFAULT_PORT );
|
||||
|
||||
tor->downloadedPrev += tor->downloadedCur;
|
||||
tor->downloadedCur = 0;
|
||||
tor->uploadedPrev += tor->uploadedCur;
|
||||
tor->uploadedCur = 0;
|
||||
assert( !tor->downloadedCur );
|
||||
assert( !tor->uploadedCur );
|
||||
|
||||
tor->error = TR_OK;
|
||||
tor->runStatus = flags & TR_FLAG_PAUSED ? TR_RUN_STOPPED : TR_RUN_RUNNING;
|
||||
|
@ -974,6 +972,7 @@ torrentThreadLoop ( void * _tor )
|
|||
tor->io = NULL;
|
||||
|
||||
/* close the tracker */
|
||||
fprintf(stderr,"sending a 'stopped' message to the tracker...\n");
|
||||
tr_trackerStopped( tor->tracker );
|
||||
tr_trackerPulse( tor->tracker, &peerCount, &peerCompact );
|
||||
tr_trackerClose( tor->tracker );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
MAJOR=0
|
||||
MINOR=7
|
||||
MAINT=9
|
||||
MAINT=2
|
||||
STRING=0.80-svn
|
||||
|
||||
# Get current SVN revision from Ids in all source files
|
||||
|
|
Loading…
Reference in New Issue