Remove an extra comma in scripts output
authorfsgqa <fsgqa>
Thu, 25 Sep 2003 02:27:04 +0000 (02:27 +0000)
committerfsgqa <fsgqa>
Thu, 25 Sep 2003 02:27:04 +0000 (02:27 +0000)
common.dbench

index 0c7415fa9adb1d88f04162933255d73de7ad6fe4..f4d7d151458a64e0b031e211fad152e8cc196f1d 100755 (executable)
@@ -31,10 +31,11 @@ _filter_dbench()
 # Output for a "multipass" dbench run.
 _format_header_multipass()
 {
 # Output for a "multipass" dbench run.
 _format_header_multipass()
 {
-       for i in $@; do
-               printf "%4s::MB/sec," $i
+       while [ $# -gt 1 ]; do
+               printf "%4s::MB/sec," $1
+               shift
        done
        done
-       printf "\n"
+       printf "%4s::MB/sec\n" $1
 }
 _filter_dbench_multipass()
 {
 }
 _filter_dbench_multipass()
 {