aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2015-01-22 19:35:50 +0000
committerJulius Bünger <buenger@mytum.de>2015-01-22 19:35:50 +0000
commitaf7fbcf698454741ea64adb3682af5768d3dc6e0 (patch)
treec39b9cd4795377927cc27599ed4e87c4f8b26e69 /src
parent94d1277e5e5cac0a9f66e4b5b058b4c37e718f13 (diff)
downloadgnunet-af7fbcf698454741ea64adb3682af5768d3dc6e0.tar.gz
gnunet-af7fbcf698454741ea64adb3682af5768d3dc6e0.zip
don't read threshholds from .conf
Diffstat (limited to 'src')
-rw-r--r--src/rps/gnunet-service-rps.c21
-rw-r--r--src/rps/test_rps.conf3
2 files changed, 0 insertions, 24 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index 8e710e580..8a76afe04 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -1571,27 +1571,6 @@ run (void *cls,
1571 1571
1572 alpha = 0.45; 1572 alpha = 0.45;
1573 beta = 0.45; 1573 beta = 0.45;
1574 // TODO initialise thresholds - ?
1575
1576 /* Get alpha from the configuration */
1577 if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_float (cfg, "RPS",
1578 "ALPHA",
1579 &alpha))
1580 {
1581 LOG (GNUNET_ERROR_TYPE_DEBUG, "No ALPHA specified in the config\n");
1582 }
1583 LOG (GNUNET_ERROR_TYPE_DEBUG, "ALPHA is %f\n", alpha);
1584
1585 /* Get beta from the configuration */
1586 if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_float (cfg, "RPS",
1587 "BETA",
1588 &beta))
1589 {
1590 LOG (GNUNET_ERROR_TYPE_DEBUG, "No BETA specified in the config\n");
1591 }
1592 LOG (GNUNET_ERROR_TYPE_DEBUG, "BETA is %f\n", beta);
1593
1594 // TODO check that alpha + beta < 1
1595 1574
1596 peer_map = GNUNET_CONTAINER_multipeermap_create (sampler_size_est_need, GNUNET_NO); 1575 peer_map = GNUNET_CONTAINER_multipeermap_create (sampler_size_est_need, GNUNET_NO);
1597 1576
diff --git a/src/rps/test_rps.conf b/src/rps/test_rps.conf
index b438821d2..8bbfad69c 100644
--- a/src/rps/test_rps.conf
+++ b/src/rps/test_rps.conf
@@ -17,9 +17,6 @@ ROUNDINTERVAL = 10 s
17# So, 50 is enough for a network of size 50^3 = 125000 17# So, 50 is enough for a network of size 50^3 = 125000
18INITSIZE = 4 18INITSIZE = 4
19 19
20ALPHA = 0.45
21BETA = 0.45
22
23[testbed] 20[testbed]
24HOSTNAME = localhost 21HOSTNAME = localhost
25 22