diff --git a/Sources/EmbraceCore/Capture/OneTimeServices/AppInfoCaptureService.swift b/Sources/EmbraceCore/Capture/OneTimeServices/AppInfoCaptureService.swift index eead48e5..b9f66fb4 100644 --- a/Sources/EmbraceCore/Capture/OneTimeServices/AppInfoCaptureService.swift +++ b/Sources/EmbraceCore/Capture/OneTimeServices/AppInfoCaptureService.swift @@ -63,10 +63,10 @@ class AppInfoCaptureService: ResourceCaptureService { ) // process start time - if let uptime = ProcessMetadata.uptime() { + if let processStartTime = ProcessMetadata.startTime { addResource( key: AppResourceKey.processStartTime.rawValue, - value: .int(Int(trunc(uptime))) + value: .int(processStartTime.nanosecondsSince1970Truncated) ) }