aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/scripts/zonewalk-to-types.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/scripts/zonewalk-to-types.sh b/contrib/scripts/zonewalk-to-types.sh
index c453702e6..54c887b8f 100755
--- a/contrib/scripts/zonewalk-to-types.sh
+++ b/contrib/scripts/zonewalk-to-types.sh
@@ -12,8 +12,8 @@ NUM_CLIENTS=3
12# and then randomize the order. 12# and then randomize the order.
13cat $1 | awk '{print $1}' | sort | uniq | shuf > $1.tmp 13cat $1 | awk '{print $1}' | sort | uniq | shuf > $1.tmp
14TOTAL=`cat $1.tmp | wc -l` 14TOTAL=`cat $1.tmp | wc -l`
15GROUP_SIZE=`expr $TOTAL / \( $NUM_TYPES + 1 \)` 15GROUP_SIZE=`expr $TOTAL / \( $NUM_CLIENTS + 1 \)`
16 16echo "Creating $NUM_CLIENTS benchmark sets with 2x $GROUP_SIZE entries each."
17# First group (0) is to be shared among all clients 17# First group (0) is to be shared among all clients
18for i in `seq 1 $NUM_CLIENTS` 18for i in `seq 1 $NUM_CLIENTS`
19do 19do
@@ -21,7 +21,7 @@ do
21done 21done
22 22
23# Second group (1) is unique per client 23# Second group (1) is unique per client
24OFF=0 24OFF=$GROUP_SIZE
25for i in `seq 1 $NUM_CLIENTS` 25for i in `seq 1 $NUM_CLIENTS`
26do 26do
27 END=`expr $OFF + $GROUP_SIZE` 27 END=`expr $OFF + $GROUP_SIZE`