Skip to content

Commit

Permalink
Added comments to disable awkward formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarkowsky committed Oct 26, 2021
1 parent 54f977b commit c983bd6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/santad/SNTApplication.m
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath
}
} else if ([keyPath isEqualToString:NSStringFromSelector(@selector(exportMetrics))]) {
BOOL new = [ change[newKey] boolValue ];
BOOL old = [ change[oldKey] boolValue ];
BOOL old = [change[oldKey] boolValue];

if (old == NO && new == YES) {
LOGI(@"metricsExport changed NO -> YES, starting to export metrics");
Expand All @@ -418,8 +418,10 @@ - (void)observeValueForKeyPath:(NSString *)keyPath
[self stopMetricsPoll];
}
} else if ([keyPath isEqualToString:NSStringFromSelector(@selector(metricExportInterval))]) {
// clang-format off
NSUInteger new = [ change[newKey] unsignedIntegerValue ];
NSUInteger old = [change[oldKey] unsignedIntegerValue];
NSUInteger old = [ change[oldKey] unsignedIntegerValue ];
// clang-format on

LOGI(@"MetricExportInterval changed from %ld to %ld restarting export", old, new);

Expand Down

0 comments on commit c983bd6

Please sign in to comment.