diff options
| author | 2024-10-03 12:10:27 +0530 | |
|---|---|---|
| committer | 2024-10-10 19:35:47 +0000 | |
| commit | 7031a84e6a3a18d2cea8550f318d24e79c68f2d6 (patch) | |
| tree | 3b0982850c41762772586d92eec4981ba03115f6 /api/api_test.go | |
| parent | da86eed6e5bebd6f355d67cd1498cdeae1c1149b (diff) | |
Avoid subtracting shmem twice when calculating LOST RAM.
NR_SHMEM is included in both shmem and cached memory of /proc/meminfo.
To avoid double subtraction (since included in kernelUsed and getCachedSizeKb) add shmem to LOST RAM.
Bug: 371518137
Change-Id: I7bdac17c2c952fbb045c0eed9f38a44df2831204
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions