Changeset 4a211f1b


Ignore:
Timestamp:
Jun 19, 2018 5:42:46 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
00c1fc6
Parents:
776c7ae
Message:

Console: Don't display individual tx/rx graphs if displaying combined graph (ticket #2106)

File:
1 edited

Legend:

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

    r776c7ae r4a211f1b  
    66import java.util.Comparator;
    77import java.util.HashMap;
     8import java.util.Iterator;
    89import java.util.List;
    910import java.util.Map;
     
    165166
    166167            if (hasTx && hasRx && !_showEvents) {
     168                // remove individual tx/rx graphs if displaying combined
     169                for (Iterator<SummaryListener> iter = ordered.iterator(); iter.hasNext(); ) {
     170                    SummaryListener lsnr = iter.next();
     171                    String title = lsnr.getRate().getRateStat().getName();
     172                    if (title.equals("bw.sendRate") || title.equals("bw.recvRate"))
     173                        iter.remove();
     174                }
    167175                _out.write("<a href=\"graph?stat=bw.combined"
    168176                           + "&amp;c=" + (3 * _periodCount )
Note: See TracChangeset for help on using the changeset viewer.