Ignore:
Timestamp:
Jul 15, 2007, 3:43:31 PM (15 years ago)
Author:
livings124
Message:

move towards fixing activity display bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r2353 r2354  
    562562
    563563            /*if( tr_peerIsInterested( peer ) && !tr_peerIsChokedByUs( peer ) )*/
     564            if( tr_peerDownloadRate( peer ) > 0.01 )
     565                ++s->peersUploading;
     566
     567            /*if( tr_peerIsInteresting( peer ) && !tr_peerIsChokingUs( peer ) )*/
    564568            if( tr_peerUploadRate( peer ) > 0.01 )
    565                 ++s->peersUploading;
    566 
    567             /*if( tr_peerIsInteresting( peer ) && !tr_peerIsChokingUs( peer ) )*/
    568             if( tr_peerDownloadRate( peer ) > 0.01 )
    569569                ++s->peersDownloading;
    570570        }
     
    660660
    661661            peers[i].uploadToRate     =  tr_peerUploadRate( peer );
    662             peers[i].isUploading      =  peers[i].uploadToRate > 0.01;
     662            peers[i].isDownloading    =  peers[i].uploadToRate > 0.01;
    663663
    664664            peers[i].downloadFromRate =  tr_peerDownloadRate( peer );
    665             peers[i].isDownloading    =  peers[i].downloadFromRate > 0.01;
     665            peers[i].isUploading      =  peers[i].downloadFromRate > 0.01;
    666666        }
    667667    }
Note: See TracChangeset for help on using the changeset viewer.