1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

add comment about M1 macs and system-info

This commit is contained in:
thatmattlove
2023-04-14 00:24:41 -04:00
parent 315abe5a4e
commit 52f910f616

View File

@ -22,6 +22,7 @@ def _cpu() -> SystemData:
brand = cpu_info.get("brand_raw", "")
cores_logical = _psutil.cpu_count()
cores_raw = _psutil.cpu_count(logical=False)
# TODO: this is currently broken for M1 Macs, check status of: https://github.com/giampaolo/psutil/issues/1892
cpu_ghz = _psutil.cpu_freq().current / 1000
return (brand, cores_logical, cores_raw, cpu_ghz)