Changeset 12517


Ignore:
Timestamp:
Jun 25, 2011, 7:29:25 PM (10 years ago)
Author:
jordan
Message:

(trunk libT) #4277 "Checkmarks for leechers" -- possible fix.

It appears 2.30 and 2.31 might be making too many assumptions about which peers are seeds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r12516 r12517  
    501501        return 0;
    502502
    503     if( !seeds )
    504         return 0;
    505 
    506     if( seeds>=0 && leechers>=0 )
     503    if( seeds>=0 && leechers>=0 && (seeds+leechers>0) )
    507504        return (int8_t)((100.0*seeds)/(seeds+leechers));
    508505
     
    13181315                        tracker->consecutiveFailures = 0;
    13191316                    }
    1320 
    1321                     if( tr_torrentIsPrivate( tier->tor ) && !row->downloaders )
    1322                         tr_peerMgrMarkAllAsSeeds( tier->tor );
    13231317                }
    13241318            }
Note: See TracChangeset for help on using the changeset viewer.