aboutsummaryrefslogtreecommitdiffstats
path: root/tools/randpkt-test.sh
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2012-08-19 13:38:53 +0000
committerEvan Huus <eapache@gmail.com>2012-08-19 13:38:53 +0000
commitf385acc4611e9dce8f47287caf54ce644c4a2c53 (patch)
treeccf0eca1ba1c63fadb79a308cd8e57337360032c /tools/randpkt-test.sh
parent85c17764299237235bea8d1d1eddac813a73993c (diff)
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
Diffstat (limited to 'tools/randpkt-test.sh')
-rwxr-xr-xtools/randpkt-test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/randpkt-test.sh b/tools/randpkt-test.sh
index a241c08c37..2c251e6b66 100755
--- a/tools/randpkt-test.sh
+++ b/tools/randpkt-test.sh
@@ -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