Skip to content

Commit c845905

Browse files
committed
divideRoundingUp
1 parent 2aa5be2 commit c845905

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftDriver/Jobs/Planning.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ extension Driver {
300300
// yields 26/25 = 1 batch, but a single batch of 26 exceeds the
301301
// limit. The calculation must round up, which can be calculated
302302
// using: `(x + y - 1) / y`
303-
let divideUp = { num, div in
303+
let divideRoundingUp = { num, div in
304304
return (num + div - 1) / div
305305
}
306306

@@ -309,7 +309,7 @@ extension Driver {
309309
let sizeLimit = info.sizeLimit ?? defaultSizeLimit
310310

311311
let numTasks = numParallelJobs ?? 1
312-
return max(numTasks, divideUp(numInputFiles, sizeLimit))
312+
return max(numTasks, divideRoundingUp(numInputFiles, sizeLimit))
313313
}
314314

315315
/// Describes the partitions used when batching.

0 commit comments

Comments
 (0)