Changeset 66f25e8


Ignore:
Timestamp:
Nov 14, 2011 3:02:57 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
0675c4c
Parents:
fcbee9d9
Message:
  • Console: Remove % chart at bottom of tunnels.jsp
File:
1 edited

Legend:

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

    rfcbee9d9 r66f25e8  
    2929
    3030/**
    31  *
     31 *  tunnels.jsp
    3232 */
    3333public class TunnelRenderer {
     
    134134        out.write("<div class=\"statusnotes\"><b>" + _("Inactive participating tunnels") + ": " + inactive + "</b></div>\n");
    135135        out.write("<div class=\"statusnotes\"><b>" + _("Lifetime bandwidth usage") + ": " + DataHelper.formatSize2(processed*1024) + "B</b></div>\n");
    136         renderPeers(out);
     136        //renderPeers(out);
    137137    }
    138138   
    139     private static class TunnelComparator implements Comparator {
    140          public int compare(Object l, Object r) {
    141              return (int) (((HopConfig)r).getProcessedMessagesCount() - ((HopConfig)l).getProcessedMessagesCount());
     139    private static class TunnelComparator implements Comparator<HopConfig> {
     140         public int compare(HopConfig l, HopConfig r) {
     141             return (int) (r.getProcessedMessagesCount() - l.getProcessedMessagesCount());
    142142        }
    143143    }
     
    229229    }
    230230   
     231/****
    231232    private void renderPeers(Writer out) throws IOException {
    232233        // count up the peers in the local pools
     
    266267        out.write("</b> <td>&nbsp;</td></tr></table></div>\n");
    267268    }
     269****/
    268270
    269271    /* duplicate of that in tunnelPoolManager for now */
    270272    /** @return total number of non-fallback expl. + client tunnels */
     273/****
    271274    private int countTunnelsPerPeer(ObjectCounter<Hash> lc) {
    272275        List<TunnelPool> pools = new ArrayList();
     
    287290        return tunnelCount;
    288291    }
     292****/
    289293
    290294    /** @return total number of part. tunnels */
     295/****
    291296    private int countParticipatingPerPeer(ObjectCounter<Hash> pc) {
    292297        List<HopConfig> participating = _context.tunnelDispatcher().listParticipatingTunnels();
     
    302307    }
    303308
    304     private static class HashComparator implements Comparator {
    305          public int compare(Object l, Object r) {
    306              return ((Hash)l).toBase64().compareTo(((Hash)r).toBase64());
    307         }
    308     }
    309    
    310309    private static class CountryComparator implements Comparator<Hash> {
    311310        public CountryComparator(CommSystemFacade comm) {
     
    327326        private CommSystemFacade comm;
    328327    }
    329 
     328****/
     329
     330    /** cap string */
    330331    private String getCapacity(Hash peer) {
    331332        RouterInfo info = _context.netDb().lookupRouterInfoLocally(peer);
Note: See TracChangeset for help on using the changeset viewer.