Renamed *_OVERHEAT functions to *_OVERHEATING
This commit is contained in:
parent
87372e957d
commit
0c18027184
2 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 ]; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue