aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-20 14:43:30 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-20 14:43:30 +0200
commit565515da0f7f770852bd81ab854d503ff1ef6c4b (patch)
tree698f93155c5b3afddde59b529aa52719489f16d2 /contrib
parent98edad8c6d481091fda3a59d1047762e10fe72c0 (diff)
downloadgnunet-565515da0f7f770852bd81ab854d503ff1ef6c4b.tar.gz
gnunet-565515da0f7f770852bd81ab854d503ff1ef6c4b.zip
fix partitioning
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`