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

Commit a4892324 authored by James Hawkins's avatar James Hawkins Committed by android-build-merger
Browse files

Merge "bootstat: Don\'t log time_since_factory_reset on device reset." am: f2620719

am: 15c0bf2a

* commit '15c0bf2a':
  bootstat: Don't log time_since_factory_reset on device reset.
parents 40345ef6 15c0bf2a
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -170,7 +170,9 @@ void RecordFactoryReset() {
  // use this signal to mark the time of the factory reset.
  // use this signal to mark the time of the factory reset.
  if (!boot_event_store.GetBootEvent("factory_reset", &record)) {
  if (!boot_event_store.GetBootEvent("factory_reset", &record)) {
    boot_event_store.AddBootEventWithValue("factory_reset", current_time_utc);
    boot_event_store.AddBootEventWithValue("factory_reset", current_time_utc);
    boot_event_store.AddBootEventWithValue("time_since_factory_reset", 0);

    // Don't log the time_since_factory_reset until some time has elapsed.
    // The data is not meaningful yet and skews the histogram buckets.
    return;
    return;
  }
  }