Skip to content

Commit

Permalink
Fixed some recently introduced issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Gummesson committed Sep 20, 2017
1 parent 75f0e19 commit 4a3b183
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BuildTimeAnalyzer/Info.plist
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.7</string>
<string>1.0.8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions BuildTimeAnalyzer/LogProcessor.swift
Expand Up @@ -51,9 +51,9 @@ extension LogProcessorProtocol {
let range = NSMakeRange(0, (text as NSString).length)
guard let match = regex.firstMatch(in: text, options: [], range: range) else { continue }

let timeString = text[...text.index(text.startIndex, offsetBy: match.range.length - 4)]
let timeString = text[..<text.index(text.startIndex, offsetBy: match.range.length - 4)]
if let time = Double(timeString) {
let value = String(text[...text.index(text.startIndex, offsetBy: match.range.length - 1)])
let value = String(text[text.index(text.startIndex, offsetBy: match.range.length - 1)...])
if var rawMeasure = rawMeasures[value] {
rawMeasure.time += time
rawMeasure.references += 1
Expand Down

0 comments on commit 4a3b183

Please sign in to comment.