Ignore:
Timestamp:
Mar 10, 2010, 3:55:00 PM (12 years ago)
Author:
charles
Message:

(trunk libT) code cleanup: after r10346, we don't need to keep the per-torrent cancel/block histories anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-msgs.c

    r10332 r10347  
    14401440            int i;
    14411441            struct peer_request r;
    1442             const uint64_t now_msec = tr_date( );
    14431442            tr_peerIoReadUint32( msgs->peer->io, inbuf, &r.index );
    14441443            tr_peerIoReadUint32( msgs->peer->io, inbuf, &r.offset );
    14451444            tr_peerIoReadUint32( msgs->peer->io, inbuf, &r.length );
    1446             tr_historyAdd( msgs->torrent->blocksSentToClient, now_msec, 1 );
    1447             tr_historyAdd( msgs->peer->cancelsSentToClient, now_msec, 1 );
     1445            tr_historyAdd( msgs->peer->cancelsSentToClient, tr_date( ), 1 );
    14481446            dbgmsg( msgs, "got a Cancel %u:%u->%u", r.index, r.offset, r.length );
    14491447
     
    19271925            else
    19281926            {
    1929                 const uint64_t now_msec = tr_date( );
    19301927                dbgmsg( msgs, "sending block %u:%u->%u", req.index, req.offset, req.length );
    19311928                EVBUFFER_LENGTH(out) += req.length;
     
    19341931                bytesWritten += EVBUFFER_LENGTH( out );
    19351932                msgs->clientSentAnythingAt = now;
    1936                 tr_historyAdd( msgs->torrent->blocksSentToClient, now_msec, 1 );
    1937                 tr_historyAdd( msgs->peer->blocksSentToPeer, now_msec, 1 );
     1933                tr_historyAdd( msgs->peer->blocksSentToPeer, tr_date( ), 1 );
    19381934            }
    19391935
Note: See TracChangeset for help on using the changeset viewer.