forked from I2P_Developers/i2p.i2p
* Console: Use capability method for counting integrated peers
* Netdb: Speed up collection of all the floodfill peers by using
PeerManager.getPeersByCapability()
* PeerManager: Capability cleanups
This commit is contained in:
@@ -221,8 +221,8 @@ public class SummaryHelper extends HelperBase {
|
||||
public int getWellIntegratedPeers() {
|
||||
if (_context == null)
|
||||
return 0;
|
||||
else
|
||||
return _context.profileOrganizer().countWellIntegratedPeers();
|
||||
//return _context.profileOrganizer().countWellIntegratedPeers();
|
||||
return _context.peerManager().getPeersByCapability(FloodfillNetworkDatabaseFacade.CAPABILITY_FLOODFILL).size();
|
||||
}
|
||||
/**
|
||||
* How many peers the router ranks as failing.
|
||||
|
||||
Reference in New Issue
Block a user