I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 316c20ee authored by zzz's avatar zzz
Browse files

Dont count yourself as a known peer

parent 13e8c956
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,8 @@ public class SummaryHelper extends HelperBase {
Boolean.valueOf(_context.getProperty("i2p.alwaysAllowReseed")).booleanValue());
}
public int getAllPeers() { return _context.netDb().getKnownRouters(); }
/** subtract one for ourselves, so if we know no other peers it displays zero */
public int getAllPeers() { return Math.max(_context.netDb().getKnownRouters() - 1, 0); }
public String getReachability() {
if (_context.router().getUptime() > 60*1000 && (!_context.router().gracefulShutdownInProgress()) &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment