diff options
-rw-r--r-- | src/rps/gnunet-service-rps.c | 21 | ||||
-rw-r--r-- | src/rps/test_rps.conf | 3 |
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 |
18 | INITSIZE = 4 | 18 | INITSIZE = 4 |
19 | 19 | ||
20 | ALPHA = 0.45 | ||
21 | BETA = 0.45 | ||
22 | |||
23 | [testbed] | 20 | [testbed] |
24 | HOSTNAME = localhost | 21 | HOSTNAME = localhost |
25 | 22 | ||