session time out for http client/server
[oweals/gnunet.git] / src / set / gnunet-set-profiler.c
index b0c81feb134b1a9e23100163dbab5220d3b95842..f6fdc25cfcdc3796233eaaac3f4dfd0109997252 100644 (file)
@@ -4,7 +4,7 @@
 
       GNUnet is free software; you can redistribute it and/or modify
       it under the terms of the GNU General Public License as published
-      by the Free Software Foundation; either version 2, or (at your
+      by the Free Software Foundation; either version 3, or (at your
       option) any later version.
 
       GNUnet is distributed in the hope that it will be useful, but
@@ -24,7 +24,6 @@
  * @author Florian Dold
  */
 #include "platform.h"
-#include "gnunet_common.h"
 #include "gnunet_util_lib.h"
 #include "gnunet_set_service.h"
 #include "gnunet_testbed_service.h"
@@ -216,7 +215,7 @@ run (void *cls, char *const *args, const char *cfgfile,
 
   config = cfg;
 
-  if (GNUNET_OK != GNUNET_CRYPTO_get_host_identity (cfg, &local_peer))
+  if (GNUNET_OK != GNUNET_CRYPTO_get_peer_identity (cfg, &local_peer))
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "could not retrieve host identity\n");
     ret = 0;
@@ -227,13 +226,13 @@ run (void *cls, char *const *args, const char *cfgfile,
 
   info1.id = "a";
   info2.id = "b";
-  
-  info1.sent = GNUNET_CONTAINER_multihashmap_create (num_a, GNUNET_NO);
-  info2.sent = GNUNET_CONTAINER_multihashmap_create (num_b, GNUNET_NO);
-  common_sent = GNUNET_CONTAINER_multihashmap_create (num_c, GNUNET_NO);
 
-  info1.received = GNUNET_CONTAINER_multihashmap_create (num_a, GNUNET_NO);
-  info2.received = GNUNET_CONTAINER_multihashmap_create (num_b, GNUNET_NO);
+  info1.sent = GNUNET_CONTAINER_multihashmap_create (num_a+1, GNUNET_NO);
+  info2.sent = GNUNET_CONTAINER_multihashmap_create (num_b+1, GNUNET_NO);
+  common_sent = GNUNET_CONTAINER_multihashmap_create (num_c+1, GNUNET_NO);
+
+  info1.received = GNUNET_CONTAINER_multihashmap_create (num_a+1, GNUNET_NO);
+  info2.received = GNUNET_CONTAINER_multihashmap_create (num_b+1, GNUNET_NO);
 
   for (i = 0; i < num_a; i++)
   {