You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2021/02/27 02:37:42 UTC

[lucene-solr] branch reference_impl_dev updated: @1412 Fix ambiguous Math.max call.

This is an automated email from the ASF dual-hosted git repository.

markrmiller pushed a commit to branch reference_impl_dev
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/reference_impl_dev by this push:
     new 7fc386d  @1412 Fix ambiguous Math.max call.
7fc386d is described below

commit 7fc386d9703720d43a1e8e3ed975e17a88c26a85
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Fri Feb 26 20:37:19 2021 -0600

    @1412 Fix ambiguous Math.max call.
    
    Took 16 minutes
---
 gradle/testing/defaults-tests.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gradle/testing/defaults-tests.gradle b/gradle/testing/defaults-tests.gradle
index 3127aaa..11238ab 100644
--- a/gradle/testing/defaults-tests.gradle
+++ b/gradle/testing/defaults-tests.gradle
@@ -43,7 +43,7 @@ allprojects {
           [propName: 'tests.heapsize', value: "512m", description: "Heap size for test JVMs"],
           // Test forks
           [propName: 'tests.jvms',
-           value: { -> ((int) Math.max(4, Runtime.runtime.availableProcessors() / 2)) },
+           value: { -> ((int) Math.max(4l, Math.round(Runtime.runtime.availableProcessors() / 2))) },
            description: "Number of forked test JVMs"],
           [propName: 'tests.haltonfailure', value: true, description: "Halt processing on test failure."],
           [propName: 'tests.jvmargs',