This commit is contained in:
Wesley Wigham 2017-09-21 10:42:06 -07:00 committed by GitHub
parent 36cdbb2857
commit b670b9763f

View file

@ -150,7 +150,7 @@ namespace Harness.Parallel.Host {
}
// Send tasks in blocks if the tasks are small
const taskList = [tasks.pop()];
while (tasks.length && taskList.reduce((p, c) => p + c.size, 0) > chunkSize) {
while (tasks.length && taskList.reduce((p, c) => p + c.size, 0) < chunkSize) {
taskList.push(tasks.pop());
}
if (taskList.length === 1) {
@ -469,4 +469,4 @@ namespace Harness.Parallel.Host {
if (value > max) return max;
return value;
}
}
}