[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r26438 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r26438 - gnunet/src/ats |
Date: |
Fri, 15 Mar 2013 10:01:21 +0100 |
Author: wachs
Date: 2013-03-15 10:01:21 +0100 (Fri, 15 Mar 2013)
New Revision: 26438
Modified:
gnunet/src/ats/gnunet-service-ats_addresses.c
gnunet/src/ats/gnunet-service-ats_addresses_mlp.c
gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c
Log:
doxygen
Modified: gnunet/src/ats/gnunet-service-ats_addresses.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.c 2013-03-15 08:49:10 UTC
(rev 26437)
+++ gnunet/src/ats/gnunet-service-ats_addresses.c 2013-03-15 09:01:21 UTC
(rev 26438)
@@ -81,8 +81,8 @@
* is loaded from ats configuration during initialization. This quota
defines
* to total amount of inbound and outbound traffic allowed for a specific
* network. The configuration values used are in section ats:
- * * <NETWORK>_QUOTA_IN = <value>
- * * <NETWORK>_QUOTA_IN = <value>
+ * * "NETWORK"_QUOTA_IN = <value>
+ * * "NETWORK"_QUOTA_IN = <value>
*
* You can specify quotas by setting the <value> to a:
* * unrestricted: unlimited
Modified: gnunet/src/ats/gnunet-service-ats_addresses_mlp.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses_mlp.c 2013-03-15 08:49:10 UTC
(rev 26437)
+++ gnunet/src/ats/gnunet-service-ats_addresses_mlp.c 2013-03-15 09:01:21 UTC
(rev 26438)
@@ -816,10 +816,12 @@
/**
- * Solves the MLP problem
+ * Propagates the results when MLP problem was solved
*
- * @param mlp the MLP Handle
- * @return GNUNET_OK if could be solved, GNUNET_SYSERR on failure
+ * @param cls the MLP handle
+ * @param key the peer identity
+ * @param value the address
+ * @return GNUNET_OK to continue
*/
int
mlp_propagate_results (void *cls, const struct GNUNET_HashCode *key, void
*value)
Modified: gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c 2013-03-15
08:49:10 UTC (rev 26437)
+++ gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c 2013-03-15
09:01:21 UTC (rev 26438)
@@ -514,7 +514,6 @@
/**
* Test if bandwidth is available in this network
*
- * @param s the solver handle
* @param net the network type to update
* @return GNUNET_YES or GNUNET_NO
*/
@@ -1278,7 +1277,7 @@
* f_k_p_i_ * / f_t
* f_k_p_i_rel = [1..2], default 1.0
* }
- * f_p_i_rel = sum (f_k_p_i_rel) / #k
+ * f_p_i_rel = sum (f_k_p_i_rel) / count(k)
* }
*
**/
@@ -1456,7 +1455,7 @@
void *client,
const struct GNUNET_PeerIdentity *peer,
enum GNUNET_ATS_PreferenceKind kind,
- float score_f)
+ float score)
{
static struct GNUNET_TIME_Absolute next_update;
struct GAS_SIMPLISTIC_Handle *s = solver;
@@ -1472,7 +1471,7 @@
client,
GNUNET_i2s (peer),
GNUNET_ATS_print_preference_type (kind),
- score_f);
+ score);
if (kind >= GNUNET_ATS_PreferenceCount)
{
@@ -1518,7 +1517,7 @@
GNUNET_CONTAINER_DLL_insert (c_cur->p_head, c_cur->p_tail, p_cur);
}
- update_preference (p_cur, kind, score_f);
+ update_preference (p_cur, kind, score);
/* FIXME: We should update quotas if UPDATE_INTERVAL is reached */
if (GNUNET_TIME_absolute_get().abs_value > next_update.abs_value)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r26438 - gnunet/src/ats,
gnunet <=