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

am: 15c0bf2a37

* commit '15c0bf2a374ee719a2d0f87bacdf0ab4bfdae92e':
  bootstat: Don't log time_since_factory_reset on device reset.
This commit is contained in:
James Hawkins 2016-03-04 19:02:50 +00:00 committed by android-build-merger
commit a48923246e
1 changed files with 3 additions and 1 deletions

View File

@ -170,7 +170,9 @@ void RecordFactoryReset() {
// use this signal to mark the time of the factory reset.
if (!boot_event_store.GetBootEvent("factory_reset", &record)) {
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;
}