aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/scripts/zonewalk-to-types.sh6
-rw-r--r--src/gns/gnunet-gns-benchmark.c1
2 files changed, 4 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`
diff --git a/src/gns/gnunet-gns-benchmark.c b/src/gns/gnunet-gns-benchmark.c
index d5afae9f6..3754eec09 100644
--- a/src/gns/gnunet-gns-benchmark.c
+++ b/src/gns/gnunet-gns-benchmark.c
@@ -244,6 +244,7 @@ process_queue (void *cls)
244 duration = GNUNET_TIME_absolute_get_duration (req->op_start_time); 244 duration = GNUNET_TIME_absolute_get_duration (req->op_start_time);
245 if (duration.rel_value_us < timeout.rel_value_us) 245 if (duration.rel_value_us < timeout.rel_value_us)
246 break; 246 break;
247 GNUNET_GNS_lookup_with_tld_cancel (req->lr);
247 GNUNET_CONTAINER_DLL_remove (act_head, 248 GNUNET_CONTAINER_DLL_remove (act_head,
248 act_tail, 249 act_tail,
249 req); 250 req);