Merge remote-tracking branch 'origin/data-refactoring' into data-refactoring

This commit is contained in:
Rsl1122 2018-06-22 13:02:07 +03:00
commit fc4942b59b

View File

@ -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;
}