aboutsummaryrefslogtreecommitdiff
path: root/src/rps
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2014-12-27 12:31:51 +0000
committerJulius Bünger <buenger@mytum.de>2014-12-27 12:31:51 +0000
commit12d0ad4a9c2adc3c36cc2fc34c973cc4f5e4c5cf (patch)
treede073080e334493c7cb397257970968eb566257f /src/rps
parent4a531f431f0d404dcfd32993f4c498d3303e3d94 (diff)
downloadgnunet-12d0ad4a9c2adc3c36cc2fc34c973cc4f5e4c5cf.tar.gz
gnunet-12d0ad4a9c2adc3c36cc2fc34c973cc4f5e4c5cf.zip
reading alpha, beta from .conf
Diffstat (limited to 'src/rps')
-rw-r--r--src/rps/gnunet-service-rps.c33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index 7101b3b0d..44815f335 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -1492,24 +1492,25 @@ run (void *cls,
1492 beta = 0.45; 1492 beta = 0.45;
1493 // TODO initialise thresholds - ? 1493 // TODO initialise thresholds - ?
1494 1494
1495 ///* Get alpha from the configuration */ 1495 /* Get alpha from the configuration */
1496 //if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_float (cfg, "RPS", 1496 if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_float (cfg, "RPS",
1497 // "ALPHA", 1497 "ALPHA",
1498 // &alpha)) 1498 &alpha))
1499 //{ 1499 {
1500 // LOG(GNUNET_ERROR_TYPE_DEBUG, "No ALPHA specified in the config\n"); 1500 LOG(GNUNET_ERROR_TYPE_DEBUG, "No ALPHA specified in the config\n");
1501 //} 1501 }
1502 //LOG(GNUNET_ERROR_TYPE_DEBUG, "ALPHA is %f\n", alpha); 1502 LOG(GNUNET_ERROR_TYPE_DEBUG, "ALPHA is %f\n", alpha);
1503 1503
1504 ///* Get beta from the configuration */ 1504 /* Get beta from the configuration */
1505 //if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_float (cfg, "RPS", 1505 if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_float (cfg, "RPS",
1506 // "BETA", 1506 "BETA",
1507 // &beta)) 1507 &beta))
1508 //{ 1508 {
1509 // LOG(GNUNET_ERROR_TYPE_DEBUG, "No BETA specified in the config\n"); 1509 LOG(GNUNET_ERROR_TYPE_DEBUG, "No BETA specified in the config\n");
1510 //} 1510 }
1511 //LOG(GNUNET_ERROR_TYPE_DEBUG, "BETA is %f\n", beta); 1511 LOG(GNUNET_ERROR_TYPE_DEBUG, "BETA is %f\n", beta);
1512 1512
1513 // TODO check that alpha + beta < 1
1513 1514
1514 peer_map = GNUNET_CONTAINER_multipeermap_create(est_size, GNUNET_NO); 1515 peer_map = GNUNET_CONTAINER_multipeermap_create(est_size, GNUNET_NO);
1515 1516