diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-20 14:43:30 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-20 14:43:30 +0200 |
commit | 565515da0f7f770852bd81ab854d503ff1ef6c4b (patch) | |
tree | 698f93155c5b3afddde59b529aa52719489f16d2 /contrib | |
parent | 98edad8c6d481091fda3a59d1047762e10fe72c0 (diff) | |
download | gnunet-565515da0f7f770852bd81ab854d503ff1ef6c4b.tar.gz gnunet-565515da0f7f770852bd81ab854d503ff1ef6c4b.zip |
fix partitioning
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/scripts/zonewalk-to-types.sh | 6 |
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. |
13 | cat $1 | awk '{print $1}' | sort | uniq | shuf > $1.tmp | 13 | cat $1 | awk '{print $1}' | sort | uniq | shuf > $1.tmp |
14 | TOTAL=`cat $1.tmp | wc -l` | 14 | TOTAL=`cat $1.tmp | wc -l` |
15 | GROUP_SIZE=`expr $TOTAL / \( $NUM_TYPES + 1 \)` | 15 | GROUP_SIZE=`expr $TOTAL / \( $NUM_CLIENTS + 1 \)` |
16 | 16 | echo "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 |
18 | for i in `seq 1 $NUM_CLIENTS` | 18 | for i in `seq 1 $NUM_CLIENTS` |
19 | do | 19 | do |
@@ -21,7 +21,7 @@ do | |||
21 | done | 21 | done |
22 | 22 | ||
23 | # Second group (1) is unique per client | 23 | # Second group (1) is unique per client |
24 | OFF=0 | 24 | OFF=$GROUP_SIZE |
25 | for i in `seq 1 $NUM_CLIENTS` | 25 | for i in `seq 1 $NUM_CLIENTS` |
26 | do | 26 | do |
27 | END=`expr $OFF + $GROUP_SIZE` | 27 | END=`expr $OFF + $GROUP_SIZE` |