Changeset 40f072e2


Ignore:
Timestamp:
Feb 19, 2008 3:32:39 PM (13 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
49c02f1
Parents:
918b1ac
Message:

Display capabilities on profiles.jsp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/peermanager/ProfileOrganizerRenderer.java

    r918b1ac r40f072e2  
    1414
    1515import net.i2p.data.Hash;
     16import net.i2p.data.RouterInfo;
    1617import net.i2p.router.RouterContext;
    1718
     
    5354        buf.append("<tr>");
    5455        buf.append("<td><b>Peer</b> (").append(order.size()).append(", hiding ").append(peers.size()-order.size()).append(")</td>");
    55         buf.append("<td><b>Groups</b></td>");
     56        buf.append("<td><b>Groups (Caps)</b></td>");
    5657        buf.append("<td><b>Speed</b></td>");
    5758        buf.append("<td><b>Capacity</b></td>");
     
    110111            }
    111112            if (isIntegrated) buf.append(", Integrated");
     113            RouterInfo info = _context.netDb().lookupRouterInfoLocally(peer);
     114            if (info != null)
     115                buf.append(" (" + info.getCapabilities() + ")");
    112116           
    113117            buf.append("<td align=\"right\">").append(num(prof.getSpeedValue()));
     
    124128        }
    125129        buf.append("</table>");
    126         buf.append("<i>Definitions:<ul>");
     130        buf.append("<p><i>Definitions:<ul>");
     131        buf.append("<li><b>groups</b>: as determined by the profile organizer</li>");
     132        buf.append("<li><b>caps</b>: capabilities in the netDb, not used to determine profiles</li>");
    127133        buf.append("<li><b>speed</b>: peak throughput (bytes per second) over a 1 minute period that the peer has sustained in a single tunnel</li>");
    128134        buf.append("<li><b>capacity</b>: how many tunnels can we ask them to join in an hour?</li>");
     
    132138        buf.append("Red peers prefixed with '--' means the peer is failing, and blue peers prefixed ");
    133139        buf.append("with '++' means we've sent or received a message from them ");
    134         buf.append("in the last five minutes</i><br />");
    135         buf.append("<b>Thresholds:</b><br />");
     140        buf.append("in the last five minutes.</i><br />");
     141        buf.append("<p><b>Thresholds:</b><br />");
    136142        buf.append("<b>Speed:</b> ").append(num(_organizer.getSpeedThreshold())).append(" (").append(fast).append(" fast peers)<br />");
    137143        buf.append("<b>Capacity:</b> ").append(num(_organizer.getCapacityThreshold())).append(" (").append(reliable).append(" high capacity peers)<br />");
Note: See TracChangeset for help on using the changeset viewer.