- more mesh regex stats
authorBart Polot <bart@net.in.tum.de>
Tue, 13 Nov 2012 18:53:39 +0000 (18:53 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 13 Nov 2012 18:53:39 +0000 (18:53 +0000)
src/mesh/gnunet-service-mesh.c

index 81e2523fe29c573c51e06eaeff53ad03a2def09a..b752784ad8c7ff20406216cb8f0040355bb6b84c 100644 (file)
@@ -6580,6 +6580,12 @@ dht_get_string_handler (void *cls, struct GNUNET_TIME_Absolute exp,
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "  key: %s\n", GNUNET_h2s (key));
 
+  GNUNET_STATISTICS_update (stats, "# regex blocks found",
+                            1, GNUNET_NO);
+  GNUNET_STATISTICS_update (stats, "# regex block bytes found",
+                            size, GNUNET_NO);
+  
+
   copy = GNUNET_malloc (size);
   memcpy (copy, data, size);
   GNUNET_break (GNUNET_OK ==