Merge "Fix DeltaTask infinite loop"

This commit is contained in:
Robin Rosenberg 2014-06-06 07:40:37 -04:00 committed by Gerrit Code Review @ Eclipse.org
commit 4dc3ba4327
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ void partitionTasks() {
ArrayList<WeightedPath> topPaths = computeTopPaths();
Iterator<WeightedPath> topPathItr = topPaths.iterator();
int nextTop = 0;
long weightPerThread = totalWeight / threads;
long weightPerThread = Math.max(totalWeight / threads, 1);
for (int i = beginIndex; i < endIndex;) {
DeltaTask task = new DeltaTask(this);
long w = 0;