mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
FreeBSD: add support for CPU frequency and temperature
This commit is contained in:

committed by
Christian Goettsche

parent
64a1ab848f
commit
fd2a0cf421
@ -79,7 +79,7 @@ static void CPUMeter_updateValues(Meter* this, char* buffer, size_t size) {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef HAVE_SENSORS_SENSORS_H
|
||||
#ifdef BUILD_WITH_CPU_TEMP
|
||||
if (this->pl->settings->showCPUTemperature) {
|
||||
double cpuTemperature = this->values[CPU_METER_TEMPERATURE];
|
||||
if (isnan(cpuTemperature))
|
||||
@ -150,7 +150,7 @@ static void CPUMeter_display(const Object* cast, RichString* out) {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef HAVE_SENSORS_SENSORS_H
|
||||
#ifdef BUILD_WITH_CPU_TEMP
|
||||
if (this->pl->settings->showCPUTemperature) {
|
||||
char cpuTemperatureBuffer[10];
|
||||
double cpuTemperature = this->values[CPU_METER_TEMPERATURE];
|
||||
|
Reference in New Issue
Block a user