Skip to content

Commit

Permalink
Improved code structure
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerblue77 committed Mar 16, 2024
1 parent e773b14 commit bfb683e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dell_iDRAC_fan_controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@ while true; do
fi
elif $FAN_SPEED_INTERPOLATION_ENABLED
then
DECIMAL_CURRENT_FAN_SPEED=$DECIMAL_FAN_SPEED

HIGHEST_CPU_TEMPERATURE=$CPU1_TEMPERATURE
if $IS_CPU2_TEMPERATURE_SENSOR_PRESENT
then
Expand Down Expand Up @@ -190,6 +188,8 @@ while true; do
FAN_VALUE_TO_ADD=$((FAN_WINDOW * TEMPERATURE_ABOVE_THRESHOLD_FOR_FAN_SPEED_INTERPOLATION / TEMPERATURE_INTERPOLATION_ACTIVATION_RANGE))
fi
DECIMAL_CURRENT_FAN_SPEED=$((DECIMAL_FAN_SPEED + FAN_VALUE_TO_ADD))
else
DECIMAL_CURRENT_FAN_SPEED=$DECIMAL_FAN_SPEED
fi
HEXADECIMAL_CURRENT_FAN_SPEED=$(convert_decimal_value_to_hexadecimal $DECIMAL_CURRENT_FAN_SPEED)
apply_fan_speed_interpolation_fan_control_profile
Expand Down

0 comments on commit bfb683e

Please sign in to comment.