Skip to content
Snippets Groups Projects
Commit 73434a90 authored by Tobias Pietzsch's avatar Tobias Pietzsch
Browse files

fixed bug: this made always as many tasks as there were lines.

parent b5f68bd6
No related branches found
No related tags found
No related merge requests found
...@@ -213,7 +213,7 @@ public class VolatileHierarchyProjector< A extends Volatile< ? >, B extends Nume ...@@ -213,7 +213,7 @@ public class VolatileHierarchyProjector< A extends Volatile< ? >, B extends Nume
final int numTasks; final int numTasks;
if ( numThreads > 1 ) if ( numThreads > 1 )
{ {
numTasks = Math.max( numThreads * 10, height ); numTasks = Math.min( numThreads * 10, height );
} }
else else
numTasks = 1; numTasks = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment