summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJos Dehaes <jos.dehaes@gmail.com>2021-10-06 16:00:41 +0200
committerJos Dehaes <jos.dehaes@gmail.com>2021-10-06 16:00:41 +0200
commitc7f1e71e29bafb5334cd4e256c662e5ee6303b1b (patch)
tree3dfa1f9b072ed0b8ef6af3937e71e6cdf003a361
parentb9d58e3faf5b60ad4f5f65454b454ff52deb5eaa (diff)
comment
-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);