Ignore:
Timestamp:
Mar 3, 2011, 6:33:24 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) remove the unused tr_ratecontrol code. switch webseed over to using tr_bandwidth.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r12057 r12074  
    11391139    int                     usableSeeds;
    11401140    uint64_t                now;
    1141     double                  d;
    11421141    uint64_t                seedRatioBytesLeft;
    11431142    uint64_t                seedRatioBytesGoal;
     
    11711170
    11721171    now = tr_time_msec( );
    1173     d = tr_peerMgrGetWebseedSpeed_Bps( tor, now );
    11741172    s->rawUploadSpeed_KBps     = toSpeedKBps( tr_bandwidthGetRawSpeed_Bps  ( tor->bandwidth, now, TR_UP ) );
    11751173    s->pieceUploadSpeed_KBps   = toSpeedKBps( tr_bandwidthGetPieceSpeed_Bps( tor->bandwidth, now, TR_UP ) );
    1176     s->rawDownloadSpeed_KBps   = toSpeedKBps( d + tr_bandwidthGetRawSpeed_Bps  ( tor->bandwidth, now, TR_DOWN ) );
    1177     s->pieceDownloadSpeed_KBps = toSpeedKBps( d + tr_bandwidthGetPieceSpeed_Bps( tor->bandwidth, now, TR_DOWN ) );
     1174    s->rawDownloadSpeed_KBps   = toSpeedKBps( tr_bandwidthGetRawSpeed_Bps  ( tor->bandwidth, now, TR_DOWN ) );
     1175    s->pieceDownloadSpeed_KBps = toSpeedKBps( tr_bandwidthGetPieceSpeed_Bps( tor->bandwidth, now, TR_DOWN ) );
    11781176
    11791177    usableSeeds += tor->info.webseedCount;
Note: See TracChangeset for help on using the changeset viewer.