diff options
| author | 2018-02-22 19:42:36 +0000 | |
|---|---|---|
| committer | 2018-02-22 19:49:04 +0000 | |
| commit | 3f31b6319f88ba81470c21711dacfb0b8bf11bee (patch) | |
| tree | 03acdd7bc998e7e3bc7664c4ea8d4dbc07a7de12 | |
| parent | 019681c7cf29ba7b97085ed7453671ddceaecc65 (diff) | |
Fix broken time comparison.
This change fixes a broken check that excludes all recent tombstones
and ANRs and only preserves old ones. Luckily, limit_by_mtime is only
true for flat (non-zipped) bug reports so we haven't seen this too
often in practice.
Test: manual
Bug: 73759506
Change-Id: Ic7856a4a1f5af3b1d5c5becb7bc83d2def4a71ea
| -rw-r--r-- | cmds/dumpstate/dumpstate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index a641dbb9db..8258c454ad 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -180,7 +180,7 @@ static std::vector<DumpData>* GetDumpFds(const std::string& dir_path, continue; } - if (limit_by_mtime && st.st_mtime >= thirty_minutes_ago) { + if (limit_by_mtime && st.st_mtime < thirty_minutes_ago) { MYLOGI("Excluding stale dump file: %s\n", abs_path.c_str()); continue; } |