Typo fix
This commit is contained in:
parent
36cdbb2857
commit
b670b9763f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue