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

Commit 34a6e844 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Fix PSS/USS Average in procstats

It was broken in I4bf6ac8d, meaning it was broken for the whole NYC.

Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l DEBUG -m CtsDumpsysHostTestCases -t android.dumpsys.cts.ProcessStatsDumpsysTest
Bug 34228624

Change-Id: I0f6c984e6902e688f00442cbc8b999b397a25aaf
parent 3d6f51d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ public class PssTable extends SparseMappingTable.Table {
            }

            val = getValue(key, PSS_USS_AVERAGE);
            setValue(key, PSS_AVERAGE,
            setValue(key, PSS_USS_AVERAGE,
                    (long)(((val*(double)count)+(avgUss*(double)inCount)) / (count+inCount)));

            val = getValue(key, PSS_USS_MAXIMUM);