forked from osmocom/wireshark
From Toralf Förster via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7652
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:
parent
85c1776429
commit
f385acc461
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue