Skip to content

Commit

Permalink
Merge pull request #72 from RobertGummesson/Fix-for-some-bugs-introdu…
Browse files Browse the repository at this point in the history
…ced-in-v1.0.7

Fixed some recently introduced issues
  • Loading branch information
Robert Gummesson authored Sep 20, 2017
2 parents 75f0e19 + 4a3b183 commit d7acc1a
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 d7acc1a

Please sign in to comment.