* 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
/**
- * 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)
/**
* 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
*/
* 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)
* }
*
**/
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;
client,
GNUNET_i2s (peer),
GNUNET_ATS_print_preference_type (kind),
- score_f);
+ score);
if (kind >= GNUNET_ATS_PreferenceCount)
{
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)