From 565515da0f7f770852bd81ab854d503ff1ef6c4b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 20 May 2018 14:43:30 +0200 Subject: fix partitioning --- contrib/scripts/zonewalk-to-types.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib') 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 # and then randomize the order. cat $1 | awk '{print $1}' | sort | uniq | shuf > $1.tmp TOTAL=`cat $1.tmp | wc -l` -GROUP_SIZE=`expr $TOTAL / \( $NUM_TYPES + 1 \)` - +GROUP_SIZE=`expr $TOTAL / \( $NUM_CLIENTS + 1 \)` +echo "Creating $NUM_CLIENTS benchmark sets with 2x $GROUP_SIZE entries each." # First group (0) is to be shared among all clients for i in `seq 1 $NUM_CLIENTS` do @@ -21,7 +21,7 @@ do done # Second group (1) is unique per client -OFF=0 +OFF=$GROUP_SIZE for i in `seq 1 $NUM_CLIENTS` do END=`expr $OFF + $GROUP_SIZE` -- cgit v1.2.3