mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
Thread count automatically creating fix.
This commit is contained in:
parent
b49d17a018
commit
a8153c9101
1 changed files with 3 additions and 3 deletions
|
@ -568,9 +568,9 @@ private void generateConfigIfNotExists() throws IOException {
|
|||
newConfig.authRejectString = "Превышен лимит авторизаций";
|
||||
newConfig.binaryName = "Launcher";
|
||||
newConfig.whitelistRejectString = "Вас нет в белом списке";
|
||||
//try (BufferedReader reader = IOHelper.newReader(IOHelper.getResourceURL("ru/gravit/launchserver/defaults/config.cfg"))) {
|
||||
// newConfig = Launcher.gson.fromJson(reader,Config.class);
|
||||
//}
|
||||
|
||||
newConfig.threadCoreCount = 0; // on your own
|
||||
newConfig.threadCount = JVMHelper.OPERATING_SYSTEM_MXBEAN.getAvailableProcessors() >= 4 ? JVMHelper.OPERATING_SYSTEM_MXBEAN.getAvailableProcessors() / 2 : JVMHelper.OPERATING_SYSTEM_MXBEAN.getAvailableProcessors();
|
||||
|
||||
// Set server address
|
||||
LogHelper.println("LaunchServer address: ");
|
||||
|
|
Loading…
Reference in a new issue