Changeset 1136


Ignore:
Timestamp:
Nov 26, 2006, 3:12:43 AM (15 years ago)
Author:
livings124
Message:

don't force more announces if the torrent is complete, and determining if there are many peers can now acknowledge a change for having many to not having many

Location:
branches/scrape
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/scrape/libtransmission/tracker.c

    r1135 r1136  
    125125    /* If there is quite a lot of people on this torrent, stress
    126126       the tracker a bit until we get a decent number of peers */
    127     if( tc->hasManyPeers )
     127    if( tc->hasManyPeers && !tc->tor->finished )
    128128    {
    129129        if( tc->tor->peerCount < 5 && now > tc->dateOk + 10000 )
     
    501501    tc->scrapeNeeded = scrapeNeeded;
    502502   
    503     if( tc->seeders + tc->leechers >= 50 )
    504     {
    505         tc->hasManyPeers = 1;
    506     }
     503    if( !scrapeNeeded )
     504        tc->hasManyPeers = tc->seeders + tc->leechers >= 50;
    507505   
    508506    if( beFoo = tr_bencDictFind( &beAll, "tracker id" ) )
  • branches/scrape/macosx/Torrent.m

    r1132 r1136  
    726726{
    727727    int date = fInfo->dateCreated;
    728     return date > 0 ? [NSDate dateWithTimeIntervalSince1970: fInfo->dateCreated] : nil;
     728    return date > 0 ? [NSDate dateWithTimeIntervalSince1970: date] : nil;
    729729}
    730730
Note: See TracChangeset for help on using the changeset viewer.