[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18678 - gnunet/src/datastore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18678 - gnunet/src/datastore |
Date: |
Mon, 19 Dec 2011 10:32:54 +0100 |
Author: grothoff
Date: 2011-12-19 10:32:53 +0100 (Mon, 19 Dec 2011)
New Revision: 18678
Modified:
gnunet/src/datastore/gnunet-service-datastore.c
Log:
fixing calculation of Bloom filter size that was too large by 1024x because it
was not adjusted when the unit for the quota was changed from kb to bytes
Modified: gnunet/src/datastore/gnunet-service-datastore.c
===================================================================
--- gnunet/src/datastore/gnunet-service-datastore.c 2011-12-18 16:56:25 UTC
(rev 18677)
+++ gnunet/src/datastore/gnunet-service-datastore.c 2011-12-19 09:32:53 UTC
(rev 18678)
@@ -1526,10 +1526,10 @@
cache_size = quota / 8; /* Or should we make this an option? */
GNUNET_STATISTICS_set (stats, gettext_noop ("# cache size"), cache_size,
GNUNET_NO);
- if (quota / 32LL > (1 << 31))
+ if (quota / (32 * 1024LL) > (1 << 31))
bf_size = (1 << 31); /* absolute limit: ~2 GB, beyond that BF
just won't help anyway */
else
- bf_size = quota / 32; /* 8 bit per entry, 1 bit per 32 kb in DB */
+ bf_size = quota / (32 * / 1024LL); /* 8 bit per entry, 1 bit per
32 kb in DB */
fn = NULL;
if ((GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_filename (cfg, "DATASTORE",
"BLOOMFILTER",
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18678 - gnunet/src/datastore,
gnunet <=