Fixes that the cases of MySQL & SQLite affected the graph

This commit is contained in:
Fuzzlemann 2017-07-26 12:08:35 +02:00
parent 869171a619
commit 8f1fabb9de

View File

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