diff --git a/AutomaticBrightness.sh b/AutomaticBrightness.sh index 4e8ee3f..6a9636b 100755 --- a/AutomaticBrightness.sh +++ b/AutomaticBrightness.sh @@ -121,7 +121,7 @@ do NewLight=$TempLight fi - DiffCount=$(( ($NewLight - $CurrentBrightness)/$LevelSteps )) + DiffCount=$(( ( $NewLight - $CurrentBrightness ) / $LevelSteps )) for i in $(eval echo {1..$LevelSteps} ) do