reliability threshold = median of active and nonfailing (inactive nonfailing can be a large number of 0 reliability peers)

This commit is contained in:
jrandom
2004-06-29 20:32:36 +00:00
committed by zzz
parent f3e267d2d0
commit 4e89b9c363

View File

@ -427,8 +427,8 @@ public class ProfileOrganizer {
if (_us.equals(profile.getPeer())) continue;
// only take into account peers that aren't failing
if (profile.getIsFailing())
// only take into account active peers that aren't failing
if (profile.getIsFailing() || (!profile.getIsActive()))
continue;
reordered.add(profile);