Package freenet.support.math

Examples of freenet.support.math.TrivialRunningAverage


    TimedStats[] entries = new TimedStats[avgDatabaseJobExecutionTimes.size()];
    int i = 0;

    synchronized(avgDatabaseJobExecutionTimes) {
      for(Map.Entry<String, TrivialRunningAverage> entry : avgDatabaseJobExecutionTimes.entrySet()) {
        TrivialRunningAverage avg = entry.getValue();
        entries[i++] = new TimedStats(entry.getKey(), avg.countReports(), (long) avg.currentValue(), (long) avg.totalValue());
      }
    }

    Arrays.sort(entries);
    return entries;
View Full Code Here

TOP

Related Classes of freenet.support.math.TrivialRunningAverage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.