From 8f1fabb9de333c7c9670ca60f6ae4218889d4514 Mon Sep 17 00:00:00 2001 From: Fuzzlemann Date: Wed, 26 Jul 2017 12:08:35 +0200 Subject: [PATCH] Fixes that the cases of MySQL & SQLite affected the graph --- .../djrapitops/plan/utilities/metrics/BStats.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/utilities/metrics/BStats.java b/Plan/src/main/java/com/djrapitops/plan/utilities/metrics/BStats.java index 1d7af2e26..8505ad550 100644 --- a/Plan/src/main/java/com/djrapitops/plan/utilities/metrics/BStats.java +++ b/Plan/src/main/java/com/djrapitops/plan/utilities/metrics/BStats.java @@ -39,7 +39,20 @@ public class BStats { addEnabledDisabledPie("gather_gmtimes", gatherGMTimes); addEnabledDisabledPie("gather_commands", gatherCommands); - String databaseType = Settings.DB_TYPE.toString(); + String databaseType = Settings.DB_TYPE.toString().toLowerCase(); + + switch (databaseType) { + case "mysql": + databaseType = "MySQL"; + break; + case "sqlite": + databaseType = "SQLite"; + break; + default: + databaseType = "No Database"; + break; + } + addStringSettingPie("database_type", databaseType); }