Skip to content
Snippets Groups Projects
Unverified Commit 5c08a851 authored by André Brait's avatar André Brait Committed by GitHub
Browse files

Fix miscalculation of number of cores for scanning projects

parent a84cd9e3
No related branches found
No related tags found
No related merge requests found
......@@ -217,7 +217,7 @@ public class Global {
Map<String, List<String>> allImplementations = new ClassGraph()
.blacklistPackages("sinalgo")
.whitelistPackages(Configuration.getUserProjectsPackage())
.scan(Math.min(Math.max(Runtime.getRuntime().availableProcessors(), 4), 1))
.scan(Math.max(Math.min(Runtime.getRuntime().availableProcessors(), 4), 1))
.getAllClasses()
.parallelStream()
.map(ClassInfo::getName)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment