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

Commit 4f01a378 authored by Olivier Gaillard's avatar Olivier Gaillard
Browse files

Make debug atom fail more often.

10 is actually quite rare when the buckets are one hour long

Test: manual
Change-Id: I3fba8d9b7d182018453d37c50b13a479be6f45f5
parent 12d08fd3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1780,8 +1780,8 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
            long elapsedNanos, final long wallClockNanos, List<StatsLogEventWrapper> pulledData) {
        StatsLogEventWrapper e = new StatsLogEventWrapper(tagId, elapsedNanos, wallClockNanos);
        final long elapsedMillis = SystemClock.elapsedRealtime();
        // Fails every 10 buckets.
        if (mDebugFailingElapsedClockPullCount++ % 10 == 0) {
        // Fails every 5 buckets.
        if (mDebugFailingElapsedClockPullCount++ % 5 == 0) {
            mDebugFailingElapsedClockPreviousValue = elapsedMillis;
            throw new RuntimeException("Failing debug elapsed clock");
        }