Use a fast bash built-in rather than a slow call out to `expr` to increment
the loop count.

svn path=/trunk/; revision=44580
This commit is contained in:
Evan Huus 2012-08-19 13:38:53 +00:00
parent 85c1776429
commit f385acc461
2 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ function exit_error() {
# Iterate over our capture files.
PASS=0
while [ \( $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 \) -a $DONE -ne 1 ] ; do
PASS=`expr $PASS + 1`
let PASS=$PASS+1
echo "Starting pass $PASS:"
RUN=0

View File

@ -104,7 +104,7 @@ function exit_error() {
# Iterate over our capture files.
PASS=0
while [ $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 ] ; do
PASS=`expr $PASS + 1`
let PASS=$PASS+1
echo "Pass $PASS:"
for PKT_TYPE in $PKT_TYPES ; do