Changeset 73f9b72


Ignore:
Timestamp:
Jul 20, 2011 1:33:38 PM (10 years ago)
Author:
dev <dev@…>
Branches:
master
Children:
a67adba
Parents:
085ca76
Message:

Sort output of RateStat?.getPeriods().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/stat/RateStat.java

    r085ca76 r73f9b72  
    5252        for (Entry<Long, Rate> e: _rates.entrySet()){
    5353            e.getValue().coalesce();
    54             if (_statName == "bw.sendRate"){
    55             System.out.println("Coalescing Rate(" + e.getValue().getPeriod() + ")");
    56             }
    5754        }
    5855    }
     
    7572        for (Entry<Long, Rate> e: _rates.entrySet())
    7673            rv[counter++] = e.getValue().getPeriod();
     74        Arrays.sort(rv);
    7775        return rv;
    7876    }
     
    9997                Rate rate = new Rate(period);
    10098                rate.setRateStat(this);
    101                 System.out.println("New Rate(" + _statName + ", " + rate.getPeriod() + ")");
    10299                _rates.put(period, rate);
    103100                return rate;
Note: See TracChangeset for help on using the changeset viewer.