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

Commit 14f0e4a4 authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

MediaMetrics: Remove redundant heat map count variable am: 579f41f3

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/16492388

Change-Id: I8a10dcba4b282612757e8b2e052b3a1312af99c2
parents 2dbefdd6 579f41f3
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -205,15 +205,14 @@ public:
        std::stringstream ss;
        int32_t ll = lines;
        std::lock_guard l(mLock);
        auto it = mMap.begin();
        if (ll > 0) {
            ss << "Error Heat Map (rejected: " << mRejected << "):\n";
            --ll;
        }
        // TODO: restriction is implemented alphabetically not on priority.
        for (int32_t count = 0; it != mMap.end() && count < lines; ++count, ++it) {
        for (const auto& [name, data] : mMap) {
            if (ll <= 0) break;
            ss << it->first << ": " << it->second.dump() << "\n";
            ss << name << ": " << data.dump() << "\n";
            --ll;
        }
        return { ss.str(), lines - ll };