Skip to content

Commit

Permalink
Address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed Aug 7, 2024
1 parent b46deb1 commit 0263c8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIP/MTRDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -625,14 +625,14 @@ - (NSString *)description

NSString * reportAge;
if (mostRecentReportTime) {
reportAge = [NSString stringWithFormat:@" (%.0fs ago)", -[mostRecentReportTime timeIntervalSinceNow]];
reportAge = [NSString stringWithFormat:@" (%.0lfs ago)", -[mostRecentReportTime timeIntervalSinceNow]];
} else {
reportAge = @"";
}

NSString * subscriptionFailureAge;
if (lastSubscriptionFailureTime) {
subscriptionFailureAge = [NSString stringWithFormat:@" (%.0fs ago)", -[lastSubscriptionFailureTime timeIntervalSinceNow]];
subscriptionFailureAge = [NSString stringWithFormat:@" (%.0lfs ago)", -[lastSubscriptionFailureTime timeIntervalSinceNow]];
} else {
subscriptionFailureAge = @"";
}
Expand Down
4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIP/MTRDevice_Concrete.mm
Original file line number Diff line number Diff line change
Expand Up @@ -538,14 +538,14 @@ - (NSString *)description

NSString * reportAge;
if (mostRecentReportTime) {
reportAge = [NSString stringWithFormat:@" (%.0fs ago)", -[mostRecentReportTime timeIntervalSinceNow]];
reportAge = [NSString stringWithFormat:@" (%.0lfs ago)", -[mostRecentReportTime timeIntervalSinceNow]];
} else {
reportAge = @"";
}

NSString * subscriptionFailureAge;
if (lastSubscriptionFailureTime) {
subscriptionFailureAge = [NSString stringWithFormat:@" (%.0fs ago)", -[lastSubscriptionFailureTime timeIntervalSinceNow]];
subscriptionFailureAge = [NSString stringWithFormat:@" (%.0lfs ago)", -[lastSubscriptionFailureTime timeIntervalSinceNow]];
} else {
subscriptionFailureAge = @"";
}
Expand Down

0 comments on commit 0263c8f

Please sign in to comment.