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

Commit 656e6afe authored by Thierry Strudel's avatar Thierry Strudel Committed by Android (Google) Code Review
Browse files

Merge "am: do not account totalSwapPss as used RAM" into nyc-dev

parents 7c3912e4 319e7d9b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -15657,8 +15657,8 @@ public final class ActivityManagerService extends ActivityManagerNative
                    pw.println(totalPss - cachedPss);
                }
            }
            long lostRAM = memInfo.getTotalSizeKb()
                    - totalPss - memInfo.getFreeSizeKb() - memInfo.getCachedSizeKb()
            long lostRAM = memInfo.getTotalSizeKb() - (totalPss - totalSwapPss)
                    - memInfo.getFreeSizeKb() - memInfo.getCachedSizeKb()
                    - memInfo.getKernelUsedSizeKb() - memInfo.getZramTotalSizeKb();
            if (!isCompact) {
                pw.print(" Used RAM: "); pw.print(stringifyKBSize(totalPss - cachedPss