commit | cd39712a47d2ff12881aadb45fe4bf48a36f563e | [log] [tgz] |
---|---|---|
author | Mark Salyzyn <salyzyn@google.com> | Mon Jun 01 09:41:19 2015 -0700 |
committer | Mark Salyzyn <salyzyn@google.com> | Mon Jun 01 13:06:35 2015 -0700 |
tree | 9a3f390b7c7470d8611fb1ada1d9fee231fc9cf3 | |
parent | 677ee829c16645eab57b73df5af62880283298e9 [diff] |
logd: KISS & fix preserve a day Code in 833a9b1e38ce65f2cdf3ebd095aaa99a92eb9467 was borken, simpler approach is to simply check last entry (to save a syscall) minus EXPIRE_HOUR_THRESHOLD. This does make longer logs less likely to call upon the spam detection than the algorithm being replaced, but sadly we ended up with a log entry in the future at the beginning of the logs confounding the previous algorithm. Bug: 21555259 Change-Id: I04fad67e95c8496521dbabb73b5f32c19d6a16c2