diff --git a/neofetch b/neofetch
index cd6f9a75..5ac26d46 100755
--- a/neofetch
+++ b/neofetch
@@ -2290,8 +2290,7 @@ esac
 
 bar() {
     # Get the values
-    percent="$1"
-    elapsed=$((percent * progress_length / $2))
+    elapsed=$(($1 * progress_length / $2))
 
     # Create the bar with spaces
     prog=$(printf %"$elapsed"s)