mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-01 10:10:34 +12:00
release a bit more - still has negative temps for 2 cores on my system
This commit is contained in:
parent
70b4871062
commit
3ffb21203a
|
@ -225,11 +225,13 @@ namespace Cpu {
|
||||||
bool get_sensors() {
|
bool get_sensors() {
|
||||||
Logger::debug("get_sensors");
|
Logger::debug("get_sensors");
|
||||||
got_sensors = false;
|
got_sensors = false;
|
||||||
ThermalSensors sensors;
|
if (Config::getB("show_coretemp") and Config::getB("check_temp")) {
|
||||||
if (sensors.getSensors().size() > 0) {
|
ThermalSensors sensors;
|
||||||
got_sensors = true;
|
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;
|
return got_sensors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include <btop_tools.hpp>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
typedef struct __IOHIDEvent *IOHIDEventRef;
|
typedef struct __IOHIDEvent *IOHIDEventRef;
|
||||||
typedef struct __IOHIDServiceClient *IOHIDServiceClientRef;
|
typedef struct __IOHIDServiceClient *IOHIDServiceClientRef;
|
||||||
|
@ -60,6 +62,7 @@ CFArrayRef getProductNames(CFDictionaryRef sensors) {
|
||||||
}
|
}
|
||||||
CFRelease(name);
|
CFRelease(name);
|
||||||
}
|
}
|
||||||
|
CFRelease(system);
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue