From 0c18027184c72ed3c3cf166f8bfbd7329a0509e6 Mon Sep 17 00:00:00 2001 From: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Date: Sun, 26 Jan 2025 14:14:24 +0000 Subject: [PATCH] Renamed *_OVERHEAT functions to *_OVERHEATING --- Dell_iDRAC_fan_controller.sh | 6 +++--- functions.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dell_iDRAC_fan_controller.sh b/Dell_iDRAC_fan_controller.sh index 7bf6f37..f876902 100644 --- a/Dell_iDRAC_fan_controller.sh +++ b/Dell_iDRAC_fan_controller.sh @@ -98,7 +98,7 @@ while true; do # Initialize a variable to store the comments displayed when the fan control profile changed COMMENT=" -" # Check if CPU 1 is overheating then apply Dell default dynamic fan control profile if true - if CPU1_OVERHEAT; then + if CPU1_OVERHEATING; then apply_Dell_fan_control_profile if ! $IS_DELL_FAN_CONTROL_PROFILE_APPLIED; then @@ -106,14 +106,14 @@ while true; do # If CPU 2 temperature sensor is present, check if it is overheating too. # Do not apply Dell default dynamic fan control profile as it has already been applied before - if $IS_CPU2_TEMPERATURE_SENSOR_PRESENT && CPU2_OVERHEAT; then + if $IS_CPU2_TEMPERATURE_SENSOR_PRESENT && CPU2_OVERHEATING; then COMMENT="CPU 1 and CPU 2 temperatures are too high, Dell default dynamic fan control profile applied for safety" else COMMENT="CPU 1 temperature is too high, Dell default dynamic fan control profile applied for safety" fi fi # If CPU 2 temperature sensor is present, check if it is overheating then apply Dell default dynamic fan control profile if true - elif $IS_CPU2_TEMPERATURE_SENSOR_PRESENT && CPU2_OVERHEAT; then + elif $IS_CPU2_TEMPERATURE_SENSOR_PRESENT && CPU2_OVERHEATING; then apply_Dell_fan_control_profile if ! $IS_DELL_FAN_CONTROL_PROFILE_APPLIED; then diff --git a/functions.sh b/functions.sh index 094d13d..1575b42 100644 --- a/functions.sh +++ b/functions.sh @@ -125,5 +125,5 @@ function get_Dell_server_model() { } # Define functions to check if CPU 1 and CPU 2 temperatures are above the threshold -function CPU1_OVERHEAT() { [ $CPU1_TEMPERATURE -gt $CPU_TEMPERATURE_THRESHOLD ]; } -function CPU2_OVERHEAT() { [ $CPU2_TEMPERATURE -gt $CPU_TEMPERATURE_THRESHOLD ]; } +function CPU1_OVERHEATING() { [ $CPU1_TEMPERATURE -gt $CPU_TEMPERATURE_THRESHOLD ]; } +function CPU2_OVERHEATING() { [ $CPU2_TEMPERATURE -gt $CPU_TEMPERATURE_THRESHOLD ]; }