Whamcloud - gitweb
b=18468
[fs/lustre-release.git] / lustre / tests / racer / file_create.sh
index d94502c..70ba0fd 100755 (executable)
@@ -5,13 +5,13 @@ MAX=$2
 MAX_MB=256
 
 create() {
-    SIZE=$(($RANDOM*MAX_MB/32))
+    SIZE=$((RANDOM * MAX_MB / 32))
     echo "file_create: SIZE=$SIZE"
     dd if=/dev/zero of=$DIR/$file bs=1k count=$SIZE
 }
 
 while /bin/true ; do 
-    file=$(($RANDOM%$MAX))
+    file=$((RANDOM % MAX))
     create 2> /dev/null
 done