diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-26 18:11:21 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-26 18:11:29 +0200 |
commit | 4b8ed8fd1560491f60481fef6c1da660ce7d54fe (patch) | |
tree | 8c48f1f3df4671b396b00fba3807eb147d62d2fd /contrib | |
parent | 5ad503e60ecd7e7159f3f8c9f3f593969d14043b (diff) | |
download | gnunet-4b8ed8fd1560491f60481fef6c1da660ce7d54fe.tar.gz gnunet-4b8ed8fd1560491f60481fef6c1da660ce7d54fe.zip |
exclude SOA-only zones
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/scripts/zonewalk-to-types.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/scripts/zonewalk-to-types.sh b/contrib/scripts/zonewalk-to-types.sh index 54c887b8f..dfe15a8e3 100755 --- a/contrib/scripts/zonewalk-to-types.sh +++ b/contrib/scripts/zonewalk-to-types.sh | |||
@@ -10,7 +10,7 @@ NUM_CLIENTS=3 | |||
10 | # FILE ($1) contains results from DNS lookup; strip | 10 | # FILE ($1) contains results from DNS lookup; strip |
11 | # everything but the hostnames, remove duplicates | 11 | # everything but the hostnames, remove duplicates |
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 | grep -v SOA | 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_CLIENTS + 1 \)` | 15 | GROUP_SIZE=`expr $TOTAL / \( $NUM_CLIENTS + 1 \)` |
16 | echo "Creating $NUM_CLIENTS benchmark sets with 2x $GROUP_SIZE entries each." | 16 | echo "Creating $NUM_CLIENTS benchmark sets with 2x $GROUP_SIZE entries each." |