/**
* 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)