Changeset db99e98


Ignore:
Timestamp:
Mar 17, 2010 4:15:52 PM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
8745ffd
Parents:
9f1a663
Message:

display transport cost

File:
1 edited

Legend:

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

    r9f1a663 rdb99e98  
    283283        for (Iterator iter = info.getAddresses().iterator(); iter.hasNext(); ) {
    284284            RouterAddress addr = (RouterAddress)iter.next();
    285             buf.append("<b>").append(DataHelper.stripHTML(addr.getTransportStyle())).append(":</b> ");
     285            String style = addr.getTransportStyle();
     286            buf.append("<b>").append(DataHelper.stripHTML(style)).append(":</b> ");
     287            int cost = addr.getCost();
     288            if (!((style.equals("SSU") && cost == 5) || (style.equals("NTCP") && cost == 10)))
     289                buf.append('[').append("cost").append('=').append("" + cost).append("] ");
    286290            for (Iterator optIter = addr.getOptions().keySet().iterator(); optIter.hasNext(); ) {
    287291                String name = (String)optIter.next();
Note: See TracChangeset for help on using the changeset viewer.