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

Commit 05c63caa authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix out-of-bounds write past end of buckets on long transactions" am:...

Merge "Fix out-of-bounds write past end of buckets on long transactions" am: 898879b9 am: d8ff894f am: f101bf96

Change-Id: I163108f7e62a2a77a8f46362b2f3a0fc39d34119
parents fbbe4fc8 f101bf96
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ struct ProcResults {
        if (time > max_time_bucket) {
            m_long_transactions++;
        }
        m_buckets[min(time, max_time_bucket-1) / time_per_bucket] += 1;
        m_buckets[min((uint32_t)(time / time_per_bucket), num_buckets - 1)] += 1;
        m_best = min(time, m_best);
        m_worst = max(time, m_worst);
        m_transactions += 1;