Examples of TrivialRunningAverage


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
Copyright © 2018 www.massapi.com. 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.