aboutsummaryrefslogtreecommitdiff
path: root/src/datacache
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-11-10 19:13:54 +0000
committerChristian Grothoff <christian@grothoff.org>2012-11-10 19:13:54 +0000
commita72d66e9bb2f2b696a46b731c4debbeaa4cc5ad4 (patch)
treef462e9041d865c5de11431e58cfaa4a480680f96 /src/datacache
parent2b8063b576a312fc3a8b7be9db6d3717e8151c31 (diff)
downloadgnunet-a72d66e9bb2f2b696a46b731c4debbeaa4cc5ad4.tar.gz
gnunet-a72d66e9bb2f2b696a46b731c4debbeaa4cc5ad4.zip
-more realistic default quota values
Diffstat (limited to 'src/datacache')
-rw-r--r--src/datacache/datacache.c4
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));