mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-27 22:01:29 +02:00
Merge branch 'OSX' of github.com:aristocratos/btop into OSX
This commit is contained in:
commit
289880aaa6
@ -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;
|
||||
}
|
||||
|
||||
|
@ -7,6 +7,8 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include <btop_tools.hpp>
|
||||
|
||||
extern "C" {
|
||||
typedef struct __IOHIDEvent *IOHIDEventRef;
|
||||
typedef struct __IOHIDServiceClient *IOHIDServiceClientRef;
|
||||
@ -60,6 +62,7 @@ CFArrayRef getProductNames(CFDictionaryRef sensors) {
|
||||
}
|
||||
CFRelease(name);
|
||||
}
|
||||
CFRelease(system);
|
||||
return array;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user