gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r498 - GNUnet/src/applications/dht/module


From: grothoff
Subject: [GNUnet-SVN] r498 - GNUnet/src/applications/dht/module
Date: Sat, 26 Mar 2005 15:17:37 -0800 (PST)

Author: grothoff
Date: 2005-03-26 15:17:36 -0800 (Sat, 26 Mar 2005)
New Revision: 498

Modified:
   GNUnet/src/applications/dht/module/Makefile.am
   GNUnet/src/applications/dht/module/dht.c
Log:
hacking on dht

Modified: GNUnet/src/applications/dht/module/Makefile.am
===================================================================
--- GNUnet/src/applications/dht/module/Makefile.am      2005-03-26 23:17:27 UTC 
(rev 497)
+++ GNUnet/src/applications/dht/module/Makefile.am      2005-03-26 23:17:36 UTC 
(rev 498)
@@ -6,7 +6,7 @@
   libgnunetmodule_dht.la 
 
 lib_LTLIBRARIES = \
-  libgnunetmodule_dht_datastore_memory.la 
+  libgnunetdht_datastore_memory.la 
 
 libgnunetmodule_dht_la_SOURCES = \
   dht.c \
@@ -19,24 +19,24 @@
 libgnunetmodule_dht_la_LDFLAGS = \
   -export-dynamic -avoid-version -module
 
-libgnunetmodule_dht_datastore_memory_la_SOURCES = \
+libgnunetdht_datastore_memory_la_SOURCES = \
   datastore_memory.c 
-libgnunetmodule_dht_datastore_memory_la_LIBADD = \
+libgnunetdht_datastore_memory_la_LIBADD = \
  $(top_builddir)/src/util/libgnunetutil.la 
-libgnunetmodule_dht_datastore_memory_la_LDFLAGS = \
+libgnunetdht_datastore_memory_la_LDFLAGS = \
   -export-dynamic 
 
 
 check_PROGRAMS = \
   datastore_memory_test
-# dht_test
 
+
 TESTS = $(check_PROGRAMS)
 
 datastore_memory_test_SOURCES = \
   datastore_memory_test.c
 datastore_memory_test_LDADD = \
-  
$(top_builddir)/src/applications/dht/module/libgnunetmodule_dht_datastore_memory.la
 \
+  $(top_builddir)/src/applications/dht/module/libgnunetdht_datastore_memory.la 
\
   $(top_builddir)/src/util/libgnunetutil.la 
 
 

Modified: GNUnet/src/applications/dht/module/dht.c
===================================================================
--- GNUnet/src/applications/dht/module/dht.c    2005-03-26 23:17:27 UTC (rev 
497)
+++ GNUnet/src/applications/dht/module/dht.c    2005-03-26 23:17:36 UTC (rev 
498)
@@ -3585,14 +3585,14 @@
     return NULL;
   i = getConfigurationInt("DHT",
                          "BUCKETCOUNT");
-  if ( (i == 0) || (i > 160) )
-    i = 160;
+  if ( (i == 0) || (i > 512) )
+    i = 512;
   GROW(buckets,
        bucketCount,
        i);
   for (i=0;i<bucketCount;i++) {
-    buckets[i].bstart = 160 * i / bucketCount;
-    buckets[i].bend = 160 * (i+1) / bucketCount;
+    buckets[i].bstart = 512 * i / bucketCount;
+    buckets[i].bend = 512 * (i+1) / bucketCount;
     buckets[i].peers = vectorNew(4);
   }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]