Ignore:
Timestamp:
Sep 17, 2008, 7:44:24 PM (14 years ago)
Author:
charles
Message:

first draft at having more accurate speed controls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.h

    r6699 r6782  
    5454tr_torrent* tr_torrentFindFromHashString( tr_handle *, const char * );
    5555tr_torrent* tr_torrentFindFromObfuscatedHash( tr_handle *, const uint8_t* );
    56 
    57 void tr_torrentGetRates( const tr_torrent *, float * toClient, float * toPeer );
    5856
    5957int tr_torrentAllowsPex( const tr_torrent * );
     
    121119    tr_info                    info;
    122120
     121    int                        uploadLimit;
    123122    tr_speedlimit              uploadLimitMode;
     123    int                        downloadLimit;
    124124    tr_speedlimit              downloadLimitMode;
    125     struct tr_ratecontrol    * upload;
    126     struct tr_ratecontrol    * download;
     125
    127126    struct tr_ratecontrol    * swarmSpeed;
    128127
     
    181180
    182181    int                        uniqueId;
     182
     183    double                     rateHistory[2][BANDWIDTH_PULSES_PER_SECOND];
     184
    183185};
    184186
Note: See TracChangeset for help on using the changeset viewer.