*/
/**
* @file ats/test_ats_simplistic_change_preference.c
- * @brief test for changing preferences in ats simplistic solver
+ * @brief test for changing preferences in ats proportional solver
* @author Christian Grothoff
* @author Matthias Wachs
*/
return;
}
- perf_ats = GNUNET_ATS_performance_init (cfg, NULL, NULL, NULL, NULL);
+ perf_ats = GNUNET_ATS_performance_init (cfg, NULL, NULL);
if (perf_ats == NULL)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Could not connect to ATS performance!\n");
/* Change bandwidth preference */
- GNUNET_ATS_change_preference (perf_ats,
+ GNUNET_ATS_performance_change_preference (perf_ats,
&p[0].id,
GNUNET_ATS_PREFERENCE_BANDWIDTH,(double) 1000, GNUNET_ATS_PREFERENCE_END);
- GNUNET_ATS_change_preference (perf_ats,
+ GNUNET_ATS_performance_change_preference (perf_ats,
&p[1].id,
GNUNET_ATS_PREFERENCE_BANDWIDTH,(double) 1000, GNUNET_ATS_PREFERENCE_END);
/* Change latency preference */
- GNUNET_ATS_change_preference (perf_ats,
+ GNUNET_ATS_performance_change_preference (perf_ats,
&p[0].id,
GNUNET_ATS_PREFERENCE_LATENCY,(double) 10, GNUNET_ATS_PREFERENCE_END);
- GNUNET_ATS_change_preference (perf_ats,
+ GNUNET_ATS_performance_change_preference (perf_ats,
&p[1].id,
GNUNET_ATS_PREFERENCE_LATENCY,(double) 100, GNUNET_ATS_PREFERENCE_END);
GNUNET_SCHEDULER_add_delayed (SLEEP, &sleep_task, NULL);