LUCENE-9165: explicitly cast with the horrible groovy language so that numbers above 9 don't fail

This commit is contained in:
Robert Muir 2020-01-24 09:53:47 -05:00
parent c53cc3edaf
commit f5e9bb9493
No known key found for this signature in database
GPG Key ID: 817AE1DD322D7ECA
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ allprojects {
if (verboseMode) {
maxParallelForks = 1
} else {
maxParallelForks = propertyOrDefault("tests.jvms", (int) Math.max(1, Math.min(Runtime.runtime.availableProcessors() / 2.0, 4.0)))
maxParallelForks = propertyOrDefault("tests.jvms", (int) Math.max(1, Math.min(Runtime.runtime.availableProcessors() / 2.0, 4.0))) as Integer
}
workingDir testsCwd