off is off, should be rc
authorChristian Grothoff <christian@grothoff.org>
Sun, 13 May 2018 17:18:00 +0000 (19:18 +0200)
committerChristian Grothoff <christian@grothoff.org>
Sun, 13 May 2018 17:18:00 +0000 (19:18 +0200)
src/gns/gns.conf.in
src/gns/gnunet-gns-benchmark.c

index 2e49a4c60d539c87da65779e5e5618a3d453361c..f7682cda709e4a50a99a17a16d09c8243983670d 100644 (file)
@@ -26,7 +26,7 @@ INTERCEPT_DNS = YES
 
 # Zones
 .pin = DWJASSPE33MRN8T6Q0PENRNBTQY0E6ZYGTRCDP5DGPBF2CRJMJEG
-
+.fr = TFDAXBXMAN40MCG4E8Y9Y1C6D16JCMDPH2VMD30KMB92SECEMYGG
 
 [gns-proxy]
 BINARY = gnunet-gns-proxy
index 630add3d96c2b3d284ad5cbd2a34d9be362a6097..1ccd2c48c7345a8a611f27e8bdd0c78f357b272b 100644 (file)
@@ -237,6 +237,7 @@ process_queue (void *cls)
   struct GNUNET_TIME_Relative duration;
 
   (void) cls;
+  t = NULL;
   /* check for expired requests */
   while (NULL != (req = act_head))
   {
@@ -344,11 +345,11 @@ do_shutdown (void *cls)
     fprintf (stdout,
             "Category %u\n",
             rc);
-    latency_sum[off] = GNUNET_TIME_relative_divide (latency_sum[off],
-                                                   replies[rc]);
+    latency_sum[rc] = GNUNET_TIME_relative_divide (latency_sum[rc],
+                                                   replies[rc]);
     fprintf (stdout,
             "\taverage: %s\n",
-            GNUNET_STRINGS_relative_time_to_string (latency_sum[off],
+            GNUNET_STRINGS_relative_time_to_string (latency_sum[rc],
                                                     GNUNET_YES));
     off = rp[rc] * 50 / 100;
     fprintf (stdout,