Bug 441016 comment 25: removed no-op Math.round(..)
authorMarkus Keller <markus_keller@ch.ibm.com>
Tue, 10 Mar 2015 15:18:03 +0000 (16:18 +0100)
committerMarkus Keller <markus_keller@ch.ibm.com>
Tue, 10 Mar 2015 15:18:03 +0000 (16:18 +0100)
org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java

index 8ee4d3b..aa9f5f5 100644 (file)
@@ -217,7 +217,7 @@ public class TextSearchVisitor {
                int maxThreads= fCollector.canRunInParallel() ? NUMBER_OF_LOGICAL_THREADS : 1;
                int jobCount= 1;
                if (maxThreads > 1) {
-                       jobCount= Math.round((files.length + FILES_PER_JOB - 1) / FILES_PER_JOB);
+                       jobCount= (files.length + FILES_PER_JOB - 1) / FILES_PER_JOB;
                }
                final JobGroup jobGroup= new TextSearchJobGroup("Text Search", maxThreads, jobCount); //$NON-NLS-1$
                long startTime= TRACING ? System.currentTimeMillis() : 0;