From be0a1c71a2c1d3e32b8dcdba3551cebcdf821f24 Mon Sep 17 00:00:00 2001 From: steel99xl Date: Mon, 8 Jan 2024 19:36:05 -0500 Subject: [PATCH] Fixed edge case --- AutomaticBrightness.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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