[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34800 - gnunet/src/rps
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34800 - gnunet/src/rps |
Date: |
Sat, 27 Dec 2014 13:31:51 +0100 |
Author: ch3
Date: 2014-12-27 13:31:51 +0100 (Sat, 27 Dec 2014)
New Revision: 34800
Modified:
gnunet/src/rps/gnunet-service-rps.c
Log:
reading alpha, beta from .conf
Modified: gnunet/src/rps/gnunet-service-rps.c
===================================================================
--- gnunet/src/rps/gnunet-service-rps.c 2014-12-27 08:15:53 UTC (rev 34799)
+++ gnunet/src/rps/gnunet-service-rps.c 2014-12-27 12:31:51 UTC (rev 34800)
@@ -1492,24 +1492,25 @@
beta = 0.45;
// TODO initialise thresholds - ?
- ///* Get alpha from the configuration */
- //if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_float (cfg, "RPS",
- // "ALPHA",
- // &alpha))
- //{
- // LOG(GNUNET_ERROR_TYPE_DEBUG, "No ALPHA specified in the config\n");
- //}
- //LOG(GNUNET_ERROR_TYPE_DEBUG, "ALPHA is %f\n", alpha);
+ /* Get alpha from the configuration */
+ if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_float (cfg, "RPS",
+ "ALPHA",
+ &alpha))
+ {
+ LOG(GNUNET_ERROR_TYPE_DEBUG, "No ALPHA specified in the config\n");
+ }
+ LOG(GNUNET_ERROR_TYPE_DEBUG, "ALPHA is %f\n", alpha);
- ///* Get beta from the configuration */
- //if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_float (cfg, "RPS",
- // "BETA",
- // &beta))
- //{
- // LOG(GNUNET_ERROR_TYPE_DEBUG, "No BETA specified in the config\n");
- //}
- //LOG(GNUNET_ERROR_TYPE_DEBUG, "BETA is %f\n", beta);
+ /* Get beta from the configuration */
+ if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_float (cfg, "RPS",
+ "BETA",
+ &beta))
+ {
+ LOG(GNUNET_ERROR_TYPE_DEBUG, "No BETA specified in the config\n");
+ }
+ LOG(GNUNET_ERROR_TYPE_DEBUG, "BETA is %f\n", beta);
+ // TODO check that alpha + beta < 1
peer_map = GNUNET_CONTAINER_multipeermap_create(est_size, GNUNET_NO);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34800 - gnunet/src/rps,
gnunet <=