diff options
author | Jakob P. Liljenberg <admin@qvantnet.com> | 2023-08-26 19:18:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-26 19:18:55 +0200 |
commit | 9c8af4df436c2847eefa66d2e0eb7ebfd75d70cf (patch) | |
tree | 57a86c3f480a1ef03b0eac17fd8233657c36b17a | |
parent | 8a49d8cf456d0a15db65e7dc704d627b75a0fe43 (diff) | |
parent | 2217cbe143dd5aa45dbd50b4dc829577e2e1ccda (diff) |
Merge pull request #601 from joske/cleanup
[macos] don't check /sys on macos
-rw-r--r-- | src/osx/btop_collect.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/osx/btop_collect.cpp b/src/osx/btop_collect.cpp index 8c8a6ac..26a93d3 100644 --- a/src/osx/btop_collect.cpp +++ b/src/osx/btop_collect.cpp @@ -73,7 +73,6 @@ namespace Cpu { vector<string> available_fields = {"total"}; vector<string> available_sensors = {"Auto"}; cpu_info current_cpu; - fs::path freq_path = "/sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq"; bool got_sensors = false, cpu_temp_only = false; int core_offset = 0; @@ -164,7 +163,6 @@ namespace Shared { arg_max = sysconf(_SC_ARG_MAX); //? Init for namespace Cpu - if (not fs::exists(Cpu::freq_path) or access(Cpu::freq_path.c_str(), R_OK) == -1) Cpu::freq_path.clear(); Cpu::current_cpu.core_percent.insert(Cpu::current_cpu.core_percent.begin(), Shared::coreCount, {}); Cpu::current_cpu.temp.insert(Cpu::current_cpu.temp.begin(), Shared::coreCount + 1, {}); Cpu::core_old_totals.insert(Cpu::core_old_totals.begin(), Shared::coreCount, 0); |