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 2aa5be2 commit c845905Copy full SHA for c845905
Sources/SwiftDriver/Jobs/Planning.swift
@@ -300,7 +300,7 @@ extension Driver {
300
// yields 26/25 = 1 batch, but a single batch of 26 exceeds the
301
// limit. The calculation must round up, which can be calculated
302
// using: `(x + y - 1) / y`
303
- let divideUp = { num, div in
+ let divideRoundingUp = { num, div in
304
return (num + div - 1) / div
305
}
306
@@ -309,7 +309,7 @@ extension Driver {
309
let sizeLimit = info.sizeLimit ?? defaultSizeLimit
310
311
let numTasks = numParallelJobs ?? 1
312
- return max(numTasks, divideUp(numInputFiles, sizeLimit))
+ return max(numTasks, divideRoundingUp(numInputFiles, sizeLimit))
313
314
315
/// Describes the partitions used when batching.
0 commit comments