From: Christian Grothoff Date: Thu, 8 Dec 2011 12:42:06 +0000 (+0000) Subject: add statistic to track estimated network diameter X-Git-Tag: initial-import-from-subversion-38251~15694 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=56223c1410a85b89b361de35ed065e54b8683b5d;p=oweals%2Fgnunet.git add statistic to track estimated network diameter --- 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 ();