From 9c1c6c4a5bd46d63bc97e71a503266943d82f828 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 13 Nov 2012 18:53:39 +0000 Subject: [PATCH] - more mesh regex stats --- src/mesh/gnunet-service-mesh.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 81e2523fe..b752784ad 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -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 == -- 2.25.1