diff --git a/Xcodes/Backend/Progress+.swift b/Xcodes/Backend/Progress+.swift index 61d26e2..ad15f1c 100644 --- a/Xcodes/Backend/Progress+.swift +++ b/Xcodes/Backend/Progress+.swift @@ -43,16 +43,11 @@ extension Progress { } // MARK: Estimated Time Remaining - let regexETA = try! NSRegularExpression(pattern: #"(?<=ETA:)(?\d*d)?(?\d*h)?(?\d*m)?(?\d*s)?"#) + let regexETA = try! NSRegularExpression(pattern: #"(?<=ETA:)(?\d*h)?(?\d*m)?(?\d*s)?"#) if let match = regexETA.firstMatch(in: string, options: [], range: range) { var seconds: Int = 0 - if let matchRange = Range(match.range(withName: "days"), in: string), - let days = Int(string[matchRange].replacingOccurrences(of: "d", with: "")) { - seconds += (days * 60 * 60 * 24) - } - if let matchRange = Range(match.range(withName: "hours"), in: string), let hours = Int(string[matchRange].replacingOccurrences(of: "h", with: "")) { seconds += (hours * 60 * 60)