We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36cdbb2 commit b670b97Copy full SHA for b670b97
src/harness/parallel/host.ts
@@ -150,7 +150,7 @@ namespace Harness.Parallel.Host {
150
}
151
// Send tasks in blocks if the tasks are small
152
const taskList = [tasks.pop()];
153
- while (tasks.length && taskList.reduce((p, c) => p + c.size, 0) > chunkSize) {
+ while (tasks.length && taskList.reduce((p, c) => p + c.size, 0) < chunkSize) {
154
taskList.push(tasks.pop());
155
156
if (taskList.length === 1) {
@@ -469,4 +469,4 @@ namespace Harness.Parallel.Host {
469
if (value > max) return max;
470
return value;
471
472
-}
+}
0 commit comments