diff options
author | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-11-13 18:54:54 +0000 |
---|---|---|
committer | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-11-13 18:54:54 +0000 |
commit | 200fc7133325e844371909fce57cd34b39ff23d9 (patch) | |
tree | 9cdd7d123bcbf8807fd68c9d48c8022a72c3efbb /src | |
parent | c8276223fe7ed9cc39fc7c69192de3ef10d098ef (diff) |
- more mesh regex stats
git-svn-id: https://gnunet.org/svn/gnunet@24937 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/gnunet-service-mesh.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 74b5712bad..1a7f10e89d 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -6516,6 +6516,10 @@ dht_get_string_accept_handler (void *cls, struct GNUNET_TIME_Absolute exp, GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Got regex results from DHT!\n"); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " for %s\n", info->description); + GNUNET_STATISTICS_update (stats, "# regex accepting blocks found", + 1, GNUNET_NO); + GNUNET_STATISTICS_update (stats, "# regex accepting block bytes found", + size, GNUNET_NO); peer_info = peer_info_get(&block->id); // p = path_build_from_dht (get_path, get_path_length, put_path, @@ -6584,7 +6588,6 @@ dht_get_string_handler (void *cls, struct GNUNET_TIME_Absolute exp, 1, GNUNET_NO); GNUNET_STATISTICS_update (stats, "# regex block bytes found", size, GNUNET_NO); - copy = GNUNET_malloc (size); memcpy (copy, data, size); |