logd: KISS & fix preserve a day
(cherry pick from commit fd318a88a0083470deb96f0070643d9587ef0874)
Code in 4f199f39189ca3aca632cc636566acb7506c272a 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
1 file changed