Skip to content

Commit

Permalink
fix #319: fix timeout interval description demo project
Browse files Browse the repository at this point in the history
  • Loading branch information
malcommac committed Dec 24, 2020
1 parent b1d4ec9 commit 6229013
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ public class GPSLocationOptions: CustomStringConvertible, Codable {

public var description: String {
switch self {
case .immediate(let t): return "immediate \(t)s"
case .delayed(let t): return "delayed \(t)s"
case .immediate(let t): return "immediate \(abs(t))s"
case .delayed(let t): return "delayed \(abs(t))s"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class GPSController: UIViewController, UITableViewDelegate, UITableViewDataSourc
case .subscription:
cell.valueLabel.text = serviceOptions.subscription.description
case .timeoutInterval:
cell.valueLabel.text = serviceOptions.minTimeInterval?.format() ?? NOT_SET
cell.valueLabel.text = serviceOptions.timeout?.description ?? NOT_SET
case .precise:
cell.valueLabel.text = serviceOptions.precise?.description ?? USER_SET
}
Expand Down

0 comments on commit 6229013

Please sign in to comment.