mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
Fixes that the cases of MySQL & SQLite affected the graph
This commit is contained in:
parent
869171a619
commit
8f1fabb9de
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user