summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-06-01 09:41:19 -0700
committerMark Salyzyn <salyzyn@google.com>2015-06-01 13:06:35 -0700
commit5921276a16528bf79292e828080bf0ec984cbb23 (patch)
tree9a3f390b7c7470d8611fb1ada1d9fee231fc9cf3 /libutils/Unicode.cpp
parent5392aac95d279a7ffc91d8fbcd074307186ca36c (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
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions