mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
(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.
This commit is contained in:
parent
34642e7259
commit
b4ffdaac42
1 changed files with 1 additions and 7 deletions
|
@ -500,10 +500,7 @@ getSeedProbability( tr_tier * tier, int seeds, int leechers, int pex_count )
|
|||
&& ( seeds + leechers < NUMWANT ) )
|
||||
return 0;
|
||||
|
||||
if( !seeds )
|
||||
return 0;
|
||||
|
||||
if( seeds>=0 && leechers>=0 )
|
||||
if( seeds>=0 && leechers>=0 && (seeds+leechers>0) )
|
||||
return (int8_t)((100.0*seeds)/(seeds+leechers));
|
||||
|
||||
return -1; /* unknown */
|
||||
|
@ -1317,9 +1314,6 @@ on_scrape_done( const tr_scrape_response * response, void * vsession )
|
|||
tracker->downloaderCount = row->downloaders;
|
||||
tracker->consecutiveFailures = 0;
|
||||
}
|
||||
|
||||
if( tr_torrentIsPrivate( tier->tor ) && !row->downloaders )
|
||||
tr_peerMgrMarkAllAsSeeds( tier->tor );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue