Changeset 6093


Ignore:
Timestamp:
Jun 9, 2008, 2:38:27 AM (14 years ago)
Author:
charles
Message:

(libT) if there are webseeds, update the available amount accordingly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r6018 r6093  
    692692    struct tr_tracker * tc;
    693693    const tr_tracker_info * ti;
    694     int seedsConnected = 0;
     694    int usableSeeds = 0;
    695695
    696696    if( !tor )
     
    720720                            &s->peersKnown,
    721721                            &s->peersConnected,
    722                                &seedsConnected,
     722                               &usableSeeds,
    723723                            &s->peersSendingToUs,
    724724                            &s->peersGettingFromUs,
    725725                             s->peersFrom );
     726
     727    usableSeeds += tor->info.webseedCount;
    726728
    727729    s->percentComplete = tr_cpPercentComplete ( tor->completion );
     
    750752
    751753
    752     if( seedsConnected > 0 )
     754    if( usableSeeds > 0 )
    753755    {
    754756        s->desiredAvailable = s->leftUntilDone;
Note: See TracChangeset for help on using the changeset viewer.