diff options
Diffstat (limited to 'src/datacache')
-rw-r--r-- | src/datacache/datacache.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/datacache/datacache.c b/src/datacache/datacache.c index 9087ae0dd..80ce1a677 100644 --- a/src/datacache/datacache.c +++ b/src/datacache/datacache.c | |||
@@ -114,6 +114,8 @@ env_delete_notify (void *cls, const struct GNUNET_HashCode * key, size_t size) | |||
114 | GNUNET_CONTAINER_bloomfilter_remove (h->filter, key); | 114 | GNUNET_CONTAINER_bloomfilter_remove (h->filter, key); |
115 | GNUNET_STATISTICS_update (h->stats, gettext_noop ("# bytes stored"), -size, | 115 | GNUNET_STATISTICS_update (h->stats, gettext_noop ("# bytes stored"), -size, |
116 | GNUNET_NO); | 116 | GNUNET_NO); |
117 | GNUNET_STATISTICS_update (h->stats, gettext_noop ("# items stored"), -1, | ||
118 | GNUNET_NO); | ||
117 | } | 119 | } |
118 | 120 | ||
119 | 121 | ||
@@ -249,6 +251,8 @@ GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, | |||
249 | GNUNET_h2s (key)); | 251 | GNUNET_h2s (key)); |
250 | GNUNET_STATISTICS_update (h->stats, gettext_noop ("# bytes stored"), size, | 252 | GNUNET_STATISTICS_update (h->stats, gettext_noop ("# bytes stored"), size, |
251 | GNUNET_NO); | 253 | GNUNET_NO); |
254 | GNUNET_STATISTICS_update (h->stats, gettext_noop ("# items stored"), 1, | ||
255 | GNUNET_NO); | ||
252 | GNUNET_CONTAINER_bloomfilter_add (h->filter, key); | 256 | GNUNET_CONTAINER_bloomfilter_add (h->filter, key); |
253 | while (h->utilization + used > h->env.quota) | 257 | while (h->utilization + used > h->env.quota) |
254 | GNUNET_assert (GNUNET_OK == h->api->del (h->api->cls)); | 258 | GNUNET_assert (GNUNET_OK == h->api->del (h->api->cls)); |