mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-15 05:41:51 +08:00
Merge remote-tracking branch 'origin/data-refactoring' into data-refactoring
This commit is contained in:
commit
fc4942b59b
@ -4,6 +4,7 @@ import com.djrapitops.plan.data.container.TPS;
|
||||
import com.djrapitops.plan.data.store.containers.DataContainer;
|
||||
import com.djrapitops.plan.data.store.keys.ServerKeys;
|
||||
import com.djrapitops.plan.system.settings.Settings;
|
||||
import com.djrapitops.plan.utilities.FormatUtils;
|
||||
import com.djrapitops.plan.utilities.html.graphs.line.Point;
|
||||
import com.djrapitops.plugin.api.TimeAmount;
|
||||
|
||||
@ -170,7 +171,7 @@ public class TPSMutator {
|
||||
.filter(num -> num >= 0)
|
||||
.average();
|
||||
if (average.isPresent()) {
|
||||
return average.getAsDouble();
|
||||
return Double.parseDouble(FormatUtils.cutDecimals(average.getAsDouble()));
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
@ -181,7 +182,7 @@ public class TPSMutator {
|
||||
.filter(num -> num >= 0)
|
||||
.average();
|
||||
if (average.isPresent()) {
|
||||
return average.getAsDouble();
|
||||
return Double.parseDouble(FormatUtils.cutDecimals(average.getAsDouble()));
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
@ -192,7 +193,7 @@ public class TPSMutator {
|
||||
.filter(num -> num >= 0)
|
||||
.average();
|
||||
if (average.isPresent()) {
|
||||
return average.getAsDouble();
|
||||
return Double.parseDouble(FormatUtils.cutDecimals(average.getAsDouble()));
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
@ -203,7 +204,7 @@ public class TPSMutator {
|
||||
.filter(num -> num >= 0)
|
||||
.average();
|
||||
if (average.isPresent()) {
|
||||
return average.getAsDouble();
|
||||
return Double.parseDouble(FormatUtils.cutDecimals(average.getAsDouble()));
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
@ -214,7 +215,7 @@ public class TPSMutator {
|
||||
.filter(num -> num >= 0)
|
||||
.average();
|
||||
if (average.isPresent()) {
|
||||
return average.getAsDouble();
|
||||
return Double.parseDouble(FormatUtils.cutDecimals(average.getAsDouble()));
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user