Adds %averagecpuweek% and %averagecpuday%

Feature / "Issue" #195
This commit is contained in:
Fuzzlemann 2017-07-26 17:13:04 +02:00
parent de85aa3491
commit e806430c29

View File

@ -51,8 +51,14 @@ public class TPSPart extends RawData<TPSPart> {
double averageTPSweek = MathUtils.averageDouble(week.stream().map(TPS::getTps));
double averageTPSday = MathUtils.averageDouble(day.stream().map(TPS::getTps));
double averageCPUweek = MathUtils.averageDouble(week.stream().map(TPS::getCPUUsage));
double averageCPUday = MathUtils.averageDouble(day.stream().map(TPS::getCPUUsage));
addValue("averagetps", FormatUtils.cutDecimals(averageTPSweek));
addValue("averagetpsday", FormatUtils.cutDecimals(averageTPSday));
addValue("averagecpuweek", FormatUtils.cutDecimals(averageCPUweek));
addValue("averagecpuday", FormatUtils.cutDecimals(averageCPUday));
}
public List<TPS> getTpsData() {