Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Rework macOS memory calculation to work on Apple Silicon #1752

Merged
merged 1 commit into from Jun 11, 2021

Conversation

wallisch
Copy link
Contributor

@wallisch wallisch commented May 19, 2021

Take pagesize into account when calculating free memory on macOS, since Apple Silicon machines have a pagesize of 16384, in contrast to all (Intel) Macs before, which had 4096.

This also changes how the calculation itself works, to more accurately report what is being shown in the Activity Manager.

Fixes #1663, #1674

@dylanaraps dylanaraps merged commit 4d7ec21 into dylanaraps:master Jun 11, 2021
@wallisch wallisch mentioned this pull request Dec 16, 2021
1 task
matt-fidd pushed a commit to matt-fidd/neofetch that referenced this pull request Sep 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect free RAM reported on ARM64 (M1 - Apple Silicon)
2 participants