mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-29 04:27:53 +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 averageTPSweek = MathUtils.averageDouble(week.stream().map(TPS::getTps));
|
||||||
double averageTPSday = MathUtils.averageDouble(day.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("averagetps", FormatUtils.cutDecimals(averageTPSweek));
|
||||||
addValue("averagetpsday", FormatUtils.cutDecimals(averageTPSday));
|
addValue("averagetpsday", FormatUtils.cutDecimals(averageTPSday));
|
||||||
|
|
||||||
|
addValue("averagecpuweek", FormatUtils.cutDecimals(averageCPUweek));
|
||||||
|
addValue("averagecpuday", FormatUtils.cutDecimals(averageCPUday));
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<TPS> getTpsData() {
|
public List<TPS> getTpsData() {
|
||||||
|
Loading…
Reference in New Issue
Block a user