summaryrefslogtreecommitdiffstats
path: root/src/osx/btop_collect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/osx/btop_collect.cpp')
-rw-r--r--src/osx/btop_collect.cpp2
1 files changed, 1 insertions, 1 deletions
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);