From 56223c1410a85b89b361de35ed065e54b8683b5d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 8 Dec 2011 12:42:06 +0000 Subject: [PATCH] add statistic to track estimated network diameter --- src/nse/gnunet-service-nse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c index 1910a3aa7..ef9e474c7 100644 --- a/src/nse/gnunet-service-nse.c +++ b/src/nse/gnunet-service-nse.c @@ -1123,6 +1123,9 @@ handle_p2p_size_estimate (void *cls, const struct GNUNET_PeerIdentity *peer, htonl (ntohl (incoming_flood->hop_count) + 1); hop_count_max = GNUNET_MAX (ntohl (incoming_flood->hop_count) + 1, hop_count_max); + GNUNET_STATISTICS_set (stats, + "# estimated network diameter", + hop_count_max, GNUNET_NO); /* have a new, better size estimate, inform clients */ update_network_size_estimate (); -- 2.25.1