Browse code

- additional small beautification

Jan Janak authored on 03/12/2003 20:07:22
Showing 1 changed files
... ...
@@ -826,14 +826,15 @@ case $1 in
826 826
 		    loops=$2;
827 827
 		fi
828 828
 		clear
829
-		while [ $loops -gt $attempt ]; do
830
-			attempt=`expr $attempt + 1`
829
+		while [ $loops -ne $attempt ] ; do
830
+			attempt=$(($attempt + 1))
831 831
 			#clear
832 832
 			tput cup 0 0
833 833
 			print_stats $name $path $attempt
834
-			if [ $loops -gt $attempt ]; then
835
-			    sleep $WATCH_PERIOD
834
+			if [ $loops -ne $attempt ] ; then
835
+				sleep $WATCH_PERIOD
836 836
 			fi
837
+				
837 838
 		done
838 839
 		rm $path
839 840
 		exit 0