Merge "Fix PSS/USS Average in procstats"

This commit is contained in:
Makoto Onuki
2017-02-07 17:11:41 +00:00
committed by Android (Google) Code Review

View File

@@ -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);