Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f31b631 authored by Narayan Kamath's avatar Narayan Kamath
Browse files

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
parent 019681c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }