Changeset be480d5


Ignore:
Timestamp:
May 27, 2009 4:27:57 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
87953c4
Parents:
32566a4
Message:

more peers.jsp and profiles.jsp cleanup

Location:
router/java/src/net/i2p/router
Files:
3 edited

Legend:

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

    r32566a4 rbe480d5  
    181181            Hash peer = prof.getPeer();
    182182
    183             buf.append("<tr><td nowrap>");
     183            buf.append("<tr><td align=\"right\" nowrap>");
    184184            buf.append(_context.commSystem().renderPeerHTML(peer));
    185185            buf.append("</td>");
  • router/java/src/net/i2p/router/transport/ntcp/NTCPTransport.java

    r32566a4 rbe480d5  
    640640        buf.append("</b><br />\n");
    641641        buf.append("<table border=\"1\">\n");
    642         buf.append(" <tr><td><b><a href=\"#def.peer\">peer</a></b></td>");
    643         buf.append("     <td><b>dir</b></td>");
    644         buf.append("     <td align=\"right\"><b><a href=\"#def.idle\">idle</a></b></td>");
    645         buf.append("     <td align=\"right\"><b><a href=\"#def.rate\">in/out</a></b></td>");
    646         buf.append("     <td align=\"right\"><b><a href=\"#def.up\">up</a></b></td>");
    647         buf.append("     <td align=\"right\"><b><a href=\"#def.skew\">skew</a></b></td>");
    648         buf.append("     <td align=\"right\"><b><a href=\"#def.send\">send</a></b></td>");
    649         buf.append("     <td align=\"right\"><b><a href=\"#def.recv\">recv</a></b></td>");
    650         buf.append("     <td><b>out queue</b></td>");
    651         buf.append("     <td><b>backlogged?</b></td>");
    652         buf.append("     <td><b>reading?</b></td>");
     642        buf.append("<tr><th><a href=\"#def.peer\">Peer</a></th>");
     643        buf.append("<th>Dir</th>");
     644        buf.append("<th align=\"right\"><a href=\"#def.idle\">Idle</a></th>");
     645        buf.append("<th align=\"right\"><a href=\"#def.rate\">In/Out</a></th>");
     646        buf.append("<th align=\"right\"><a href=\"#def.up\">Up</a></th>");
     647        buf.append("<th align=\"right\"><a href=\"#def.skew\">Skew</a></th>");
     648        buf.append("<th align=\"right\"><a href=\"#def.send\">Send</a></th>");
     649        buf.append("<th align=\"right\"><a href=\"#def.recv\">Recv</a></th>");
     650        buf.append("<th>Out queue</th>");
     651        buf.append("<th>Backlogged?</th>");
     652        buf.append("<th>Reading?</th>");
    653653        buf.append(" </tr>\n");
    654654        out.write(buf.toString());
     
    656656        for (Iterator iter = peers.iterator(); iter.hasNext(); ) {
    657657            NTCPConnection con = (NTCPConnection)iter.next();
    658             buf.append("<tr><td nowrap>");
     658            buf.append("<tr><td align=\"right\" nowrap>");
    659659            buf.append(_context.commSystem().renderPeerHTML(con.getRemotePeer().calculateHash()));
    660660            //byte[] ip = getIP(con.getRemotePeer().calculateHash());
  • router/java/src/net/i2p/router/transport/udp/UDPTransport.java

    r32566a4 rbe480d5  
    17551755        buf.append("</b><br />\n");
    17561756        buf.append("<table border=\"1\">\n");
    1757         buf.append(" <tr><td><b><a href=\"#def.peer\">peer</a></b>");
     1757        buf.append("<tr><td><b><a href=\"#def.peer\">Peer</a></b>");
    17581758        if (sortFlags != FLAG_ALPHA)
    17591759            buf.append(" <a href=\"").append(urlBase).append("?sort=0\">V</a> ");
    1760         buf.append("</td><td>dir/intro</td><td><b><a href=\"#def.idle\">idle</a></b>");
     1760        buf.append("</td><td>dir/intro</td><td><b><a href=\"#def.idle\">Idle</a></b>");
    17611761        appendSortLinks(buf, urlBase, sortFlags, "Sort by idle inbound", FLAG_IDLE_IN);
    17621762        buf.append("/");
    17631763        appendSortLinks(buf, urlBase, sortFlags, "Sort by idle outbound", FLAG_IDLE_OUT);
    17641764        buf.append("</td>");
    1765         buf.append("     <td><b><a href=\"#def.rate\">in/out</a></b>");
     1765        buf.append("<td><b><a href=\"#def.rate\">In/Out</a></b>");
    17661766        appendSortLinks(buf, urlBase, sortFlags, "Sort by inbound rate", FLAG_RATE_IN);
    17671767        buf.append("/");
    17681768        appendSortLinks(buf, urlBase, sortFlags, "Sort by outbound rate", FLAG_RATE_OUT);
    17691769        buf.append("</td>\n");
    1770         buf.append("     <td><b><a href=\"#def.up\">up</a></b>");
     1770        buf.append("<td><b><a href=\"#def.up\">Up</a></b>");
    17711771        appendSortLinks(buf, urlBase, sortFlags, "Sort by connection uptime", FLAG_UPTIME);
    17721772        buf.append("</td><td><b><a href=\"#def.skew\">skew</a></b>");
    17731773        appendSortLinks(buf, urlBase, sortFlags, "Sort by clock skew", FLAG_SKEW);
    17741774        buf.append("</td>\n");
    1775         buf.append("     <td><b><a href=\"#def.cwnd\">cwnd</a></b>");
     1775        buf.append("<td><b><a href=\"#def.cwnd\">Cwnd</a></b>");
    17761776        appendSortLinks(buf, urlBase, sortFlags, "Sort by congestion window", FLAG_CWND);
    1777         buf.append("</td><td><b><a href=\"#def.ssthresh\">ssthresh</a></b>");
     1777        buf.append("</td><td><b><a href=\"#def.ssthresh\">Ssthresh</a></b>");
    17781778        appendSortLinks(buf, urlBase, sortFlags, "Sort by slow start threshold", FLAG_SSTHRESH);
    17791779        buf.append("</td>\n");
    1780         buf.append("     <td><b><a href=\"#def.rtt\">rtt</a></b>");
     1780        buf.append("<td><b><a href=\"#def.rtt\">Rtt</a></b>");
    17811781        appendSortLinks(buf, urlBase, sortFlags, "Sort by round trip time", FLAG_RTT);
    1782         buf.append("</td><td><b><a href=\"#def.dev\">dev</a></b>");
     1782        buf.append("</td><td><b><a href=\"#def.dev\">Dev</a></b>");
    17831783        appendSortLinks(buf, urlBase, sortFlags, "Sort by round trip time deviation", FLAG_DEV);
    1784         buf.append("</td><td><b><a href=\"#def.rto\">rto</a></b>");
     1784        buf.append("</td><td><b><a href=\"#def.rto\">Rto</a></b>");
    17851785        appendSortLinks(buf, urlBase, sortFlags, "Sort by retransmission timeout", FLAG_RTO);
    17861786        buf.append("</td>\n");
    1787         buf.append("     <td><b><a href=\"#def.mtu\">mtu</a></b>");
     1787        buf.append("<td><b><a href=\"#def.mtu\">Mtu</a></b>");
    17881788        appendSortLinks(buf, urlBase, sortFlags, "Sort by maximum transmit unit", FLAG_MTU);
    1789         buf.append("</td><td><b><a href=\"#def.send\">send</a></b>");
     1789        buf.append("</td><td><b><a href=\"#def.send\">Send</a></b>");
    17901790        appendSortLinks(buf, urlBase, sortFlags, "Sort by packets sent", FLAG_SEND);
    1791         buf.append("</td><td><b><a href=\"#def.recv\">recv</a></b>");
     1791        buf.append("</td><td><b><a href=\"#def.recv\">Recv</a></b>");
    17921792        appendSortLinks(buf, urlBase, sortFlags, "Sort by packets received", FLAG_RECV);
    17931793        buf.append("</td>\n");
    1794         buf.append("     <td><b><a href=\"#def.resent\">resent</a></b>");
     1794        buf.append("<td><b><a href=\"#def.resent\">Resent</a></b>");
    17951795        appendSortLinks(buf, urlBase, sortFlags, "Sort by packets retransmitted", FLAG_RESEND);
    1796         buf.append("</td><td><b><a href=\"#def.dupRecv\">dupRecv</a></b>");
     1796        buf.append("</td><td><b><a href=\"#def.dupRecv\">DupRecv</a></b>");
    17971797        appendSortLinks(buf, urlBase, sortFlags, "Sort by packets received more than once", FLAG_DUP);
    17981798        buf.append("</td>\n");
    1799         buf.append(" </tr>\n");
     1799        buf.append("</tr>\n");
    18001800        out.write(buf.toString());
    18011801        buf.setLength(0);
     
    18061806                continue; // don't include old peers
    18071807           
    1808             buf.append("<tr>");
    1809            
    1810             buf.append("<td nowrap>");
     1808            buf.append("<tr><td align=\"right\" nowrap>");
    18111809            buf.append(_context.commSystem().renderPeerHTML(peer.getRemotePeer()));
    18121810            //byte ip[] = peer.getRemoteIP();
Note: See TracChangeset for help on using the changeset viewer.