Closed tantonw closed 2 years ago
@tantonw No problem.
I've confirmed the same on a MBP 13" and a Mac Mini with ARM chipsets.
If you want to submit a PR with this improvement, that would be great.
Thanks for contributing!
Submitted PR #13
Thanks!
PRs #13 and #14 have both been merged.
I also thought of an additional piece that I just added in 6be6665 to help prevent needless cycles.
Thanks!
First, thanks for developing and maintaining this script! I was fiddling with RAM numbers to explore how the script worked and noticed that the check_ram_upgradeable function might not be behaving as desired on newer Macs. This isn't causing a bug presently, but it will if Apple increases memory requirements. From some very brief testing it seems that M1 Macs don't return the "Upgradeable Memory:" line from "system_profiler SPMemoryDataType", so the check_ram_upgradeable function returns blank. I think a band-aid like this might suffice: