tasking for n threads should give you n threads in NanoScheduler, not n - 1

This commit is contained in:
Mark DePristo 2012-08-30 15:57:29 -04:00
parent 1212dfd2ef
commit 544740d45d
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public class NanoScheduler<InputType, MapType, ReduceType> {
this.mapGroupSize = mapGroupSize;
}
this.executor = nThreads == 1 ? null : Executors.newFixedThreadPool(nThreads - 1);
this.executor = nThreads == 1 ? null : Executors.newFixedThreadPool(nThreads);
}
/**