From 633132e29e6003aa441e67913ea33d1de9d0d36d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 13 May 2018 19:26:00 +0200 Subject: [PATCH] output basic stats even on 100% failures --- src/gns/gnunet-gns-benchmark.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gns/gnunet-gns-benchmark.c b/src/gns/gnunet-gns-benchmark.c index 1ccd2c48c..af5c27c8c 100644 --- a/src/gns/gnunet-gns-benchmark.c +++ b/src/gns/gnunet-gns-benchmark.c @@ -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) -- 2.25.1