From c7f1e71e29bafb5334cd4e256c662e5ee6303b1b Mon Sep 17 00:00:00 2001 From: Jos Dehaes Date: Wed, 6 Oct 2021 16:00:41 +0200 Subject: [PATCH] comment --- src/osx/btop_collect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/btop_collect.cpp b/src/osx/btop_collect.cpp index c5e5514..89b4dc0 100644 --- a/src/osx/btop_collect.cpp +++ b/src/osx/btop_collect.cpp @@ -270,7 +270,7 @@ namespace Cpu { mib[1] = HW_CPU_FREQ; if (sysctl(mib, 2, &freq, &size, NULL, 0) < 0) { - Logger::error("Failed to get CPU frequency: " + std::to_string(errno)); + // this fails on Apple Silicon macs. Apparently you're not allowed to know return ""; } return std::to_string(freq / 1000.0 / 1000.0 / 1000.0).substr(0, 3);