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.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/osx/btop_collect.cpp b/src/osx/btop_collect.cpp
index dbe7f3e..12ce949 100644
--- a/src/osx/btop_collect.cpp
+++ b/src/osx/btop_collect.cpp
@@ -225,11 +225,13 @@ namespace Cpu {
bool get_sensors() {
Logger::debug("get_sensors");
got_sensors = false;
- ThermalSensors sensors;
- if (sensors.getSensors().size() > 0) {
- got_sensors = true;
+ if (Config::getB("show_coretemp") and Config::getB("check_temp")) {
+ ThermalSensors sensors;
+ if (sensors.getSensors().size() > 0) {
+ got_sensors = true;
+ }
+ Logger::debug("got sensors:" + std::to_string(got_sensors));
}
- Logger::debug("got sensors:" + std::to_string(got_sensors));
return got_sensors;
}