projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb2def8
)
- more mesh regex stats
author
Bart Polot
<bart@net.in.tum.de>
Tue, 13 Nov 2012 18:53:39 +0000
(18:53 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Tue, 13 Nov 2012 18:53:39 +0000
(18:53 +0000)
src/mesh/gnunet-service-mesh.c
patch
|
blob
|
history
diff --git
a/src/mesh/gnunet-service-mesh.c
b/src/mesh/gnunet-service-mesh.c
index 81e2523fe29c573c51e06eaeff53ad03a2def09a..b752784ad8c7ff20406216cb8f0040355bb6b84c 100644
(file)
--- 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 ==