Changeset b6e8431


Ignore:
Timestamp:
Dec 6, 2015 4:47:34 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d45dc8d
Parents:
826bb54
Message:

Console: Don't force profile creation when loading floodfill tab
Don't show negative times
Sybil tool: tweaks
TunnelRenderer?: minor cleanup

Location:
apps/routerconsole/java/src/net/i2p/router/web
Files:
3 edited

Legend:

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

    r826bb54 rb6e8431  
    4848        for (Hash peer : peers) {
    4949            if (_organizer.getUs().equals(peer)) continue;
    50             PeerProfile prof = _organizer.getProfile(peer);
     50            PeerProfile prof = _organizer.getProfileNonblocking(peer);
    5151            if (prof == null)
    5252                continue;
     
    367367        if (then <= 0)
    368368            return _t(NA);
     369        // avoid 0 or negative
     370        if (now <= then)
     371            return DataHelper.formatDuration2(1);
    369372        return DataHelper.formatDuration2(now - then);
    370373    }
  • apps/routerconsole/java/src/net/i2p/router/web/SybilRenderer.java

    r826bb54 rb6e8431  
    4949    private static final int MAX = 10;
    5050    // multiplied by size - 1, will also get POINTS24 added
    51     private static final double POINTS32 = 10.0;
     51    private static final double POINTS32 = 5.0;
    5252    // multiplied by size - 1, will also get POINTS16 added
    53     private static final double POINTS24 = 10.0;
     53    private static final double POINTS24 = 5.0;
    5454    // multiplied by size - 1
    5555    private static final double POINTS16 = 0.25;
     
    212212            renderRouterInfoHTML(out, buf, rkey, avgMinDist, ris, points);
    213213            nkey = rkgen.getNextRoutingKey(ls.getHash());
    214             buf.append("<h3>Closest floodfills to Tomorrow's Routing Key for " + DataHelper.escapeHTML(name) + " (where we store our LS)</h3>");
     214            buf.append("<h3>Closest floodfills to Tomorrow's Routing Key for " + DataHelper.escapeHTML(name) + " (where we will store our LS)</h3>");
    215215            renderRouterInfoHTML(out, buf, nkey, avgMinDist, ris, points);
    216216        }
  • apps/routerconsole/java/src/net/i2p/router/web/TunnelRenderer.java

    r826bb54 rb6e8431  
    4747            if ((!isLocal) && (!debug))
    4848                continue;
    49             TunnelPool in = null;
    50             TunnelPool outPool = null;
    51             in = clientInboundPools.get(client);
    52             outPool = clientOutboundPools.get(client);
     49            TunnelPool in = clientInboundPools.get(client);
     50            TunnelPool outPool = clientOutboundPools.get(client);
    5351            // TODO the following code is duplicated in SummaryHelper
    54             String name = (in != null ? in.getSettings().getDestinationNickname() : null);
     52            String name = (in != null) ? in.getSettings().getDestinationNickname() : null;
    5553            if ( (name == null) && (outPool != null) )
    5654                name = outPool.getSettings().getDestinationNickname();
Note: See TracChangeset for help on using the changeset viewer.