mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-22 11:55:54 +01:00
Math.max instead of .min
This commit is contained in:
parent
ebfefde8d8
commit
1dcb513e9a
@ -42,7 +42,7 @@ public class StandardScheduler implements Scheduler {
|
||||
new CountingThreadFactory(Scheduler.THREAD_NAME_PREFIX + "Executor #%s")
|
||||
),
|
||||
new ForkJoinPool(
|
||||
Math.min(1, Runtime.getRuntime().availableProcessors() - 1), /* Parallelism - not core pool size */
|
||||
Math.max(1, Runtime.getRuntime().availableProcessors() - 1), /* Parallelism - not core pool size */
|
||||
new CountingForkJoinWorkerThreadFactory(Scheduler.THREAD_NAME_PREFIX + "ForkJoinPool Worker #%s"),
|
||||
null,
|
||||
false /* FIFO */
|
||||
|
Loading…
Reference in New Issue
Block a user