mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-28 03:57:33 +01:00
parent
de85aa3491
commit
e806430c29
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user