Whamcloud - gitweb
LU-1347 style: removes obsolete EXPORT_SYMTAB macros
[fs/lustre-release.git] / lustre / tests / mdsrate-create-small.sh
index 03ca9bb..59b33a6 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+ #!/bin/bash
 #
 # This test was used in a set of CMD3 tests (cmd3-3 test). 
 
@@ -80,7 +80,7 @@ else
         log "===== $0 ### 1 NODE UNLINK ###"
 
         if [ -f "$LOG" ]; then
-            CREATED=$(awk '/total:/ { print $7 }' $LOG)
+            CREATED=$(sed -n '/^Rate:/s/^.* \([0-9]*\) creates .*/\1/p' $LOG)
            [ $CREATED -gt 0 ] && NUM_FILES=$CREATED
         fi
 
@@ -130,7 +130,7 @@ else
         log "===== $0 ### $NUM_CLIENTS NODES UNLINK with $THREADS_PER_CLIENT threads per client ###"
 
         if [ -f "$LOG" ]; then
-            CREATED=$(awk '/total:/ { print $7 }' $LOG)
+            CREATED=$(sed -n '/^Rate:/s/^.* \([0-9]*\) creates .*/\1/p' $LOG)
             [ $CREATED -gt 0 ] && NUM_FILES=$CREATED
         fi