From 52f910f61688ed2944e2f4a3da75dc5a9351369c Mon Sep 17 00:00:00 2001 From: thatmattlove Date: Fri, 14 Apr 2023 00:24:41 -0400 Subject: [PATCH] add comment about M1 macs and system-info --- hyperglass/util/system_info.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hyperglass/util/system_info.py b/hyperglass/util/system_info.py index 753099c..c8f28c3 100644 --- a/hyperglass/util/system_info.py +++ b/hyperglass/util/system_info.py @@ -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)