Ignore:
Timestamp:
Jan 30, 2006, 2:13:40 AM (16 years ago)
Author:
titer
Message:

Removed now unused tables and some now unused code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer.c

    r60 r61  
    245245            tr_rcTransferred( tor->download, ret );
    246246            tr_rcTransferred( tor->globalDownload, ret );
    247             if( parseBuf( tor, peer, ret ) )
     247            if( parseBuf( tor, peer ) )
    248248            {
    249249                return 1;
     
    283283    tr_peer_t * peer;
    284284
    285     tor->dates[9] = tr_date();
    286     if( tor->dates[9] > tor->dates[8] + 1000 )
    287     {
    288         memmove( &tor->downloaded[0], &tor->downloaded[1],
    289                  9 * sizeof( uint64_t ) );
    290         memmove( &tor->uploaded[0], &tor->uploaded[1],
    291                  9 * sizeof( uint64_t ) );
    292         memmove( &tor->dates[0], &tor->dates[1],
    293                  9 * sizeof( uint64_t ) );
     285    if( tr_date() > tor->date + 1000 )
     286    {
     287        tor->date = tr_date();
    294288
    295289        for( i = 0; i < tor->peerCount; )
     
    380374            tr_rcTransferred( tor->globalUpload, ret );
    381375
    382             tor->uploaded[9] += ret;
    383             peer->outTotal   += ret;
    384             peer->outDate     = tr_date();
     376            tor->uploaded  += ret;
     377            peer->outTotal += ret;
     378            peer->outDate   = tr_date();
    385379
    386380            /* In case this block is done, you may have messages
Note: See TracChangeset for help on using the changeset viewer.