diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-22 20:02:01 +0100 |
---|---|---|
committer | Christian Goettsche <cgzones@googlemail.com> | 2021-02-05 16:32:25 +0100 |
commit | fd2a0cf4219ac6b000e3ef46e1958edd2ff41a67 (patch) | |
tree | 1c556519ebb1c235f2e8954e2de25d35dd1c2582 /CPUMeter.c | |
parent | 64a1ab848f4cba7b9dd4705a169034e39048d27d (diff) |
FreeBSD: add support for CPU frequency and temperature
Diffstat (limited to 'CPUMeter.c')
-rw-r--r-- | CPUMeter.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]; |