From 44e2dd048f3e82417448e1f29f4ea27cb12761ea Mon Sep 17 00:00:00 2001 From: adrian <7adrian.mail@gmail.com> Date: Fri, 1 Mar 2024 19:44:56 +0100 Subject: [PATCH] Fix for second CPU temperature lower threshold. --- Dell_iDRAC_fan_controller.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dell_iDRAC_fan_controller.sh b/Dell_iDRAC_fan_controller.sh index 9553282..a402676 100755 --- a/Dell_iDRAC_fan_controller.sh +++ b/Dell_iDRAC_fan_controller.sh @@ -158,8 +158,8 @@ while true; do else if $ENABLE_LINE_INTERPOLATION then - CURRENT_FAN_SPEED=$FAN_SPEED - if [ $CPU1_TEMPERATURE -gt $CPU_TEMPERATURE_FOR_START_LINE_INTERPOLATION ]; + CURRENT_FAN_SPEED=$DECIMAL_FAN_SPEED + if [ $CPU1_TEMPERATURE -gt $CPU_TEMPERATURE_FOR_START_LINE_INTERPOLATION ] || [$IS_CPU2_TEMPERATURE_SENSOR_PRESENT] && [$CPU2_TEMPERATURE -gt $CPU_TEMPERATURE_FOR_START_LINE_INTERPOLATION]; then CPU_HIGHER_TEMP=$CPU1_TEMPERATURE if $IS_CPU2_TEMPERATURE_SENSOR_PRESENT