mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Changes to executor, improve default config
This commit is contained in:
1 parent
7739eb9ca0
commit
ed127276f0
2 files changed
+10
-9
No files matched your search
@@ -70,7 +70,8 @@ public final class AntiCheatReloaded extends JavaPlugin {
|
||||
plugin = this;
|
||||
manager = new AntiCheatManager(this, getLogger());
|
||||
|
||||
final int threads = Math.max(1, Runtime.getRuntime().availableProcessors() / 4);
|
||||
// Base threads on available cores, limit of 4
|
||||
final int threads = Math.min(Runtime.getRuntime().availableProcessors() / 4, 4);
|
||||
executorService = Executors.newFixedThreadPool(threads);
|
||||
Bukkit.getConsoleSender().sendMessage(PREFIX + ChatColor.GRAY + "Pool size is " + threads + " threads");
|
||||
|
||||
|
||||
Reference in new issue
Block a user