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

Commit 579f41f3 authored by Andy Hung's avatar Andy Hung
Browse files

MediaMetrics: Remove redundant heat map count variable

Test: adb shell dumpsys media.metrics
Bug: 199763036
Change-Id: I8503c1e4a8110c91d8776005d7282542e90c8fd7
parent 137a99f1
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 };