fix partitioning
authorChristian Grothoff <christian@grothoff.org>
Sun, 20 May 2018 12:43:30 +0000 (14:43 +0200)
committerChristian Grothoff <christian@grothoff.org>
Sun, 20 May 2018 12:43:30 +0000 (14:43 +0200)
contrib/scripts/zonewalk-to-types.sh
src/gns/gnunet-gns-benchmark.c

index c453702e656961666f8f3f148d0629ab3b5a0072..54c887b8f48c203e85d965d4be3ae6e308de2023 100755 (executable)
@@ -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`
index d5afae9f661c1fb3ccd2c75463748d8a79f2ac5c..3754eec09e4b752cc86883ccbfd7bb189da4fe07 100644 (file)
@@ -244,6 +244,7 @@ process_queue (void *cls)
     duration = GNUNET_TIME_absolute_get_duration (req->op_start_time);
     if (duration.rel_value_us < timeout.rel_value_us)
       break;
+    GNUNET_GNS_lookup_with_tld_cancel (req->lr);
     GNUNET_CONTAINER_DLL_remove (act_head,
                                 act_tail,
                                 req);