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

Commit 47ce2987 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Avoid division by zero error when AppOps history is empty." into rvc-dev am: 18f643d4

Change-Id: I45ba190ba83b64cd3c5c5d7948aa3cff6e665ac7
parents aa417d85 18f643d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2951,7 +2951,7 @@ public class StatsPullAtomService extends SystemService {
    }
    }


    int processHistoricalOps(HistoricalOps histOps, int atomTag, List<StatsEvent> pulledData) {
    int processHistoricalOps(HistoricalOps histOps, int atomTag, List<StatsEvent> pulledData) {
        int counter = 0;
        int counter = 1;
        for (int uidIdx = 0; uidIdx < histOps.getUidCount(); uidIdx++) {
        for (int uidIdx = 0; uidIdx < histOps.getUidCount(); uidIdx++) {
            final HistoricalUidOps uidOps = histOps.getUidOpsAt(uidIdx);
            final HistoricalUidOps uidOps = histOps.getUidOpsAt(uidIdx);
            final int uid = uidOps.getUid();
            final int uid = uidOps.getUid();