Count message splits
authorNathan S. Evans <evans@in.tum.de>
Thu, 11 Nov 2010 11:25:04 +0000 (11:25 +0000)
committerNathan S. Evans <evans@in.tum.de>
Thu, 11 Nov 2010 11:25:04 +0000 (11:25 +0000)
src/dht/gnunet-service-dht.c

index 810997e4ccdd249c0334ed15ec886d6e391790b6..d9fa4008401c1473031aac45bdf75097af591d6a 100644 (file)
@@ -2787,7 +2787,10 @@ get_forward_count (unsigned int hop_count, size_t target_replication)
   target_value = 1;
   GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "random %u, target %u, max %u\n", random_value, target_replication, target_replication * (hop_count + 1) + diameter);
   if (random_value < target_replication)
-    target_value++;
+    {
+      increment_stats("# DHT Messages split");
+      target_value++;
+    }
 
   return target_value;
 }