Changeset 316c20e


Ignore:
Timestamp:
Aug 2, 2009 11:54:14 AM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d8d76fd
Parents:
13e8c95
Message:

Dont count yourself as a known peer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java

    r13e8c95 r316c20e  
    9191    }
    9292   
    93     public int getAllPeers() { return _context.netDb().getKnownRouters(); }
     93    /** subtract one for ourselves, so if we know no other peers it displays zero */
     94    public int getAllPeers() { return Math.max(_context.netDb().getKnownRouters() - 1, 0); }
    9495   
    9596    public String getReachability() {
Note: See TracChangeset for help on using the changeset viewer.