Commit 4842987
committed
correct memory on macos
- get real pagesize from sysctl rather than assuming 4K
- account for inactive memory (which is a misleading name, it's still in
use)
- for reference: anonymous-purgeable is what Activity Monitor refers
to as "App Memory", this uses sum of app+wired+compressed
- result is identical to number produced by neofetch and fastfetch1 parent ccfdc7a commit 4842987
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
306 | 309 | | |
307 | 310 | | |
308 | 311 | | |
309 | 312 | | |
310 | 313 | | |
311 | | - | |
| 314 | + | |
312 | 315 | | |
313 | 316 | | |
314 | 317 | | |
| |||
0 commit comments