From 747592d688be37ecac6056a71fb47d64b2fe7274 Mon Sep 17 00:00:00 2001 From: Fuzzlemann Date: Thu, 27 Jul 2017 20:02:01 +0200 Subject: [PATCH] Fixes byte to MB conversion at the TPSPart --- .../main/java/com/djrapitops/plan/data/analysis/TPSPart.java | 2 +- Plan/src/main/resources/analysis.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/data/analysis/TPSPart.java b/Plan/src/main/java/com/djrapitops/plan/data/analysis/TPSPart.java index 3ccbd9ae7..0ac3a92f3 100644 --- a/Plan/src/main/java/com/djrapitops/plan/data/analysis/TPSPart.java +++ b/Plan/src/main/java/com/djrapitops/plan/data/analysis/TPSPart.java @@ -56,7 +56,7 @@ public class TPSPart extends RawData { addValue("ramscatterweek", ramScatterWeek); Runtime runtime = Runtime.getRuntime(); - addValue("maxram", (runtime.maxMemory() / 1000000)); + addValue("maxram", runtime.maxMemory() / 1000000); double averageTPSWeek = MathUtils.averageDouble(week.stream().map(TPS::getTps)); double averageTPSDay = MathUtils.averageDouble(day.stream().map(TPS::getTps)); diff --git a/Plan/src/main/resources/analysis.html b/Plan/src/main/resources/analysis.html index ee28105bc..e06d86df0 100644 --- a/Plan/src/main/resources/analysis.html +++ b/Plan/src/main/resources/analysis.html @@ -1474,7 +1474,7 @@ }, scaleLabel: { display: true, - labelString: 'Memory Usage (Mt)' + labelString: 'Memory Usage (MB)' } }], xAxes: [{ @@ -1573,7 +1573,7 @@ }, scaleLabel: { display: true, - labelString: 'Memory Usage (Mt)' + labelString: 'Memory Usage (MB)' } }], xAxes: [{