Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2015-03-10 15:18:03 +0000
committerMarkus Keller2015-03-10 15:18:03 +0000
commitaddaa58a5527f1f9d4d7ac61c6a1f734d106da39 (patch)
treef7074bf6563515ac0cfad8fe8d7a0dd3a2db366f /org.eclipse.search/search/org/eclipse/search/internal
parent2665a685362643f4593e1aae34a968d48fe03c5d (diff)
downloadeclipse.platform.text-addaa58a5527f1f9d4d7ac61c6a1f734d106da39.tar.gz
eclipse.platform.text-addaa58a5527f1f9d4d7ac61c6a1f734d106da39.tar.xz
eclipse.platform.text-addaa58a5527f1f9d4d7ac61c6a1f734d106da39.zip
Bug 441016 comment 25: removed no-op Math.round(..)I20150316-2000I20150316-0800I20150315-2000I20150311-1300
Diffstat (limited to 'org.eclipse.search/search/org/eclipse/search/internal')
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java b/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java
index 8ee4d3b1ad5..aa9f5f59a17 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java
@@ -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;

Back to the top