diff options
Diffstat (limited to 'DisplayOptionsPanel.c')
-rw-r--r-- | DisplayOptionsPanel.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/DisplayOptionsPanel.c b/DisplayOptionsPanel.c index c6228b70..884045f3 100644 --- a/DisplayOptionsPanel.c +++ b/DisplayOptionsPanel.c @@ -118,8 +118,16 @@ DisplayOptionsPanel* DisplayOptionsPanel_new(Settings* settings, ScreenManager* Panel_add(super, (Object*) CheckItem_newByRef("Add guest time in CPU meter percentage", &(settings->accountGuestInCPUMeter))); Panel_add(super, (Object*) CheckItem_newByRef("Also show CPU percentage numerically", &(settings->showCPUUsage))); Panel_add(super, (Object*) CheckItem_newByRef("Also show CPU frequency", &(settings->showCPUFrequency))); - #ifdef HAVE_SENSORS_SENSORS_H - Panel_add(super, (Object*) CheckItem_newByRef("Also show CPU temperature (requires libsensors)", &(settings->showCPUTemperature))); + #ifdef BUILD_WITH_CPU_TEMP + Panel_add(super, (Object*) CheckItem_newByRef( + #ifdef HTOP_LINUX + "Also show CPU temperature (requires libsensors)", + #elif defined(HTOP_FREEBSD) + "Also show CPU temperature", + #else + #error Unknown temperature implementation! + #endif + &(settings->showCPUTemperature))); Panel_add(super, (Object*) CheckItem_newByRef("- Show temperature in degree Fahrenheit instead of Celsius", &(settings->degreeFahrenheit))); #endif Panel_add(super, (Object*) CheckItem_newByRef("Enable the mouse", &(settings->enableMouse))); |