File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Crashlytics/Crashlytics/Controllers Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -133,10 +133,9 @@ - (BOOL)processMetricKitPayload:(MXDiagnosticPayload *)diagnosticPayload
133
133
return false ;
134
134
}
135
135
136
- // Time stamp information from MetricKit is only available in begin and end time periods. For now,
137
- // we rely on the current timestamp to set the event timestamp, since this is likely more accurate
138
- // that the 24 hour block we'd otherwise have.
139
- NSTimeInterval beginSecondsSince1970 = [[NSDate date ] timeIntervalSince1970 ];
136
+ // MXDiagnosticPayload have both a timeStampBegin and timeStampEnd. Now that these events are
137
+ // real-time, both refer to the same time - record both values anyway.
138
+ NSTimeInterval beginSecondsSince1970 = [diagnosticPayload.timeStampBegin timeIntervalSince1970 ];
140
139
NSTimeInterval endSecondsSince1970 = [diagnosticPayload.timeStampEnd timeIntervalSince1970 ];
141
140
142
141
// Get file path for the active reports directory.
You can’t perform that action at this time.
0 commit comments