Changeset 6b1224b2


Ignore:
Timestamp:
Sep 19, 2008 1:03:57 AM (12 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
e5c7b79
Parents:
0bbc94f
Message:

2008-09-19 zzz

  • Tunnels:
    • Add missing message accounting for inbound gateways, we were underestimating participating traffic because of it, and the tunnels were classified "inactive"
    • Add participating tunnel role on tunnels.jsp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • history.txt

    r0bbc94f r6b1224b2  
     12008-09-19 zzz
     2    * Tunnels:
     3      - Add missing message accounting for inbound gateways,
     4        we were underestimating participating traffic because of it,
     5        and the tunnels were classified "inactive"
     6      - Add participating tunnel role on tunnels.jsp
     7
    182008-09-18 zzz
    29    * Throttle:
  • router/java/src/net/i2p/router/RouterVersion.java

    r0bbc94f r6b1224b2  
    1818    public final static String ID = "$Revision: 1.548 $ $Date: 2008-06-07 23:00:00 $";
    1919    public final static String VERSION = "0.6.3";
    20     public final static long BUILD = 6;
     20    public final static long BUILD = 7;
    2121    public static void main(String args[]) {
    2222        System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
  • router/java/src/net/i2p/router/tunnel/InboundGatewayReceiver.java

    r0bbc94f r6b1224b2  
    3434        }
    3535       
     36        _config.incrementProcessedMessages();
    3637        TunnelDataMessage msg = new TunnelDataMessage(_context);
    3738        msg.setData(encrypted);
  • router/java/src/net/i2p/router/tunnel/pool/TunnelPoolManager.java

    r0bbc94f r6b1224b2  
    449449        out.write("<tr><td><b>Receive on</b></td><td><b>From</b></td><td>"
    450450                  + "<b>Send on</b></td><td><b>To</b></td><td><b>Expiration</b></td>"
    451                   + "<td><b>Usage</b></td></tr>\n");
     451                  + "<td><b>Usage</b></td><td><b>Role</b></td></tr>\n");
    452452        long processed = 0;
    453453        RateStat rs = _context.statManager().getRate("tunnel.participatingMessageCount");
     
    469469                out.write("<td>" + cfg.getReceiveFrom().toBase64().substring(0,4) +"</td>");
    470470            else
    471                 out.write("<td>n/a</td>");
     471                out.write("<td>&nbsp;</td>");
    472472            if (cfg.getSendTunnel() != null)
    473473                out.write("<td>" + cfg.getSendTunnel().getTunnelId() +"</td>");
    474474            else
    475                 out.write("<td>n/a</td>");
     475                out.write("<td>&nbsp;</td>");
    476476            if (cfg.getSendTo() != null)
    477477                out.write("<td>" + cfg.getSendTo().toBase64().substring(0,4) +"</td>");
    478478            else
    479                 out.write("<td>n/a</td>");
     479                out.write("<td>&nbsp;</td>");
    480480            long timeLeft = cfg.getExpiration()-_context.clock().now();
    481481            if (timeLeft > 0)
     
    484484                out.write("<td align=right>(grace period)</td>");
    485485            out.write("<td align=right>" + cfg.getProcessedMessagesCount() + "KB</td>");
     486            if (cfg.getSendTo() == null)
     487                out.write("<td>Outbound Endpoint</td>");
     488            else if (cfg.getReceiveFrom() == null)
     489                out.write("<td>Inbound Gateway</td>");
     490            else
     491                out.write("<td>Participant</td>");
    486492            out.write("</tr>\n");
    487493            processed += cfg.getProcessedMessagesCount();
Note: See TracChangeset for help on using the changeset viewer.