From eb2def8dfd5a4042785a5e3540fb369760f2b9a3 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 13 Nov 2012 18:41:58 +0000 Subject: [PATCH] - more mesh regex stats --- src/mesh/gnunet-service-mesh.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 63dc69f01..81e2523fe 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -1772,6 +1772,10 @@ regex_iterator (void *cls, size = sizeof (block); block.key = *key; block.id = my_full_id; + GNUNET_STATISTICS_update (stats, "# regex accepting blocks stored", + 1, GNUNET_NO); + GNUNET_STATISTICS_update (stats, "# regex accepting block bytes stored", + sizeof (block), GNUNET_NO); (void) GNUNET_DHT_put(dht_handle, key, dht_replication_level, @@ -1830,6 +1834,11 @@ regex_iterator (void *cls, GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS), /* FIXME: this should be an option */ app_announce_time, NULL, NULL); + GNUNET_STATISTICS_update (stats, "# regex blocks stored", + 1, GNUNET_NO); + GNUNET_STATISTICS_update (stats, "# regex block bytes stored", + size, GNUNET_NO); + GNUNET_free (block); } @@ -6502,7 +6511,7 @@ dht_get_string_accept_handler (void *cls, struct GNUNET_TIME_Absolute exp, const struct MeshRegexAccept *block = data; struct MeshRegexSearchContext *ctx = cls; struct MeshRegexSearchInfo *info = ctx->info; - struct MeshPeerPath *p; +// struct MeshPeerPath *p; struct MeshPeerInfo *peer_info; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Got regex results from DHT!\n"); -- 2.25.1