Skip to content

Commit 3256b4b

Browse files
icanzilbQuietMisdreavus
authored andcommitted
fixes #1066 (#1067)
1 parent b86e2bf commit 3256b4b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/SwiftDocC/Benchmark/Metrics/PeakMemory.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ extension Benchmark {
5252
let peakMemoryString = statusString.components(separatedBy: .newlines)
5353
.first(where: { $0.hasPrefix("VmPeak") })?
5454
.components(separatedBy: CharacterSet.decimalDigits.inverted)
55-
.filter({ !$0.isEmpty })
56-
.first,
55+
.first(where: { !$0.isEmpty }),
5756
let peakMemory = Double(peakMemoryString) else { return nil }
5857

5958
return Int64(peakMemory * 1024) // convert from KBytes to bytes

0 commit comments

Comments
 (0)