aboutsummaryrefslogtreecommitdiff
path: root/src/nse
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-08 12:42:06 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-08 12:42:06 +0000
commit56223c1410a85b89b361de35ed065e54b8683b5d (patch)
tree808e58e24c3e3f9b29c4f4ed58ffe6438ec68cd3 /src/nse
parentd42b8f058dc23bb5e309677d14321be026bf01c4 (diff)
downloadgnunet-56223c1410a85b89b361de35ed065e54b8683b5d.tar.gz
gnunet-56223c1410a85b89b361de35ed065e54b8683b5d.zip
add statistic to track estimated network diameter
Diffstat (limited to 'src/nse')
-rw-r--r--src/nse/gnunet-service-nse.c3
1 files changed, 3 insertions, 0 deletions
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,
1123 htonl (ntohl (incoming_flood->hop_count) + 1); 1123 htonl (ntohl (incoming_flood->hop_count) + 1);
1124 hop_count_max = 1124 hop_count_max =
1125 GNUNET_MAX (ntohl (incoming_flood->hop_count) + 1, hop_count_max); 1125 GNUNET_MAX (ntohl (incoming_flood->hop_count) + 1, hop_count_max);
1126 GNUNET_STATISTICS_set (stats,
1127 "# estimated network diameter",
1128 hop_count_max, GNUNET_NO);
1126 1129
1127 /* have a new, better size estimate, inform clients */ 1130 /* have a new, better size estimate, inform clients */
1128 update_network_size_estimate (); 1131 update_network_size_estimate ();