output basic stats even on 100% failures
authorChristian Grothoff <christian@grothoff.org>
Sun, 13 May 2018 17:26:00 +0000 (19:26 +0200)
committerChristian Grothoff <christian@grothoff.org>
Sun, 13 May 2018 17:26:00 +0000 (19:26 +0200)
src/gns/gnunet-gns-benchmark.c

index 1ccd2c48c7345a8a611f27e8bdd0c78f357b272b..af5c27c8c7b6916777cdca93b9b730172c85ca25 100644 (file)
@@ -336,15 +336,20 @@ do_shutdown (void *cls)
   {
     unsigned int off;
 
+    fprintf (stdout,
+            "Category %u\n",
+            rc);
+    fprintf (stdout,
+            "\tlookups: %u replies: %u failures: %u\n",
+            lookups[rc],
+            replies[rc],
+            failures[rc]);
     if (0 == rp[rc])
       continue;
     qsort (ra[rc],
           rp[rc],
           sizeof (struct Request *),
           &compare_req);
-    fprintf (stdout,
-            "Category %u\n",
-            rc);
     latency_sum[rc] = GNUNET_TIME_relative_divide (latency_sum[rc],
                                                    replies[rc]);
     fprintf (stdout,
@@ -371,11 +376,6 @@ do_shutdown (void *cls)
             "\tquantile(99): %s\n",
             GNUNET_STRINGS_relative_time_to_string (ra[rc][off]->latency,
                                                     GNUNET_YES));
-    fprintf (stdout,
-            "\tlookups: %u replies: %u failures: %u\n",
-            lookups[rc],
-            replies[rc],
-            failures[rc]);
     GNUNET_free (ra[rc]);
   }
   if (NULL != t)