Changeset 1288


Ignore:
Timestamp:
Dec 27, 2006, 1:04:30 AM (15 years ago)
Author:
livings124
Message:

support in libT for individual torrent speed caps

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer.c

    r1251 r1288  
    267267    for( ;; )
    268268    {
    269         if( tor && !tr_rcCanTransfer( tor->globalDownload ) )
     269        if( tor && (!tr_rcCanTransfer( tor->globalDownload )
     270                    || !tr_rcCanTransfer( tor->download ) ) )
    270271        {
    271272            break;
     
    437438        while( ( p = blockPending( tor, peer, &size ) ) )
    438439        {
    439             if( !tr_rcCanTransfer( tor->globalUpload ) )
     440            if( !tr_rcCanTransfer( tor->globalUpload )
     441                || !tr_rcCanTransfer( tor->upload ) )
    440442            {
    441443                break;
  • trunk/libtransmission/transmission.c

    r1286 r1288  
    202202}
    203203
     204void tr_setUploadLimit( tr_torrent_t * tor, int limit )
     205{
     206    tr_rcSetLimit( tor->upload, limit );
     207}
     208
     209void tr_setDownloadLimit( tr_torrent_t * tor, int limit )
     210{
     211    tr_rcSetLimit( tor->download, limit );
     212}
     213
    204214void tr_torrentRates( tr_handle_t * h, float * dl, float * ul )
    205215{
Note: See TracChangeset for help on using the changeset viewer.