Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3d2b952 authored by Arthur Ishiguro's avatar Arthur Ishiguro
Browse files

Fix Context Hub restart timestamp unit

Bug: 194287570
Test: Compile
Change-Id: Iea9d13fb8a1cd3957a4ae4b7fd637c068c7e4835
parent 040d9338
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@ import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;

/**
@@ -709,7 +710,8 @@ public class ContextHubService extends IContextHubService.Stub {
            long now = SystemClock.elapsedRealtimeNanos();
            long lastRestartTimeNs = mLastRestartTimestampMap.get(contextHubId).getAndSet(now);
            ContextHubStatsLog.write(
                    ContextHubStatsLog.CONTEXT_HUB_RESTARTED, now - lastRestartTimeNs,
                    ContextHubStatsLog.CONTEXT_HUB_RESTARTED,
                    TimeUnit.NANOSECONDS.toMillis(now - lastRestartTimeNs),
                    contextHubId);

            sendLocationSettingUpdate();