From 4596a20eb4c61cf84e3a88a881597ba05114d482 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 25 Mar 2013 16:06:07 +0000 Subject: ats api change --- src/fs/gnunet-service-fs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/fs') diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c index 0f1f0ddbc..6a7d135bf 100644 --- a/src/fs/gnunet-service-fs.c +++ b/src/fs/gnunet-service-fs.c @@ -243,6 +243,7 @@ GSF_test_get_load_too_high_ (uint32_t priority) static void update_latencies (void *cls, const struct GNUNET_HELLO_Address *address, + unsigned int active, struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, const struct GNUNET_ATS_Information *ats, @@ -251,7 +252,8 @@ update_latencies (void *cls, unsigned int i; struct GNUNET_TIME_Relative latency; - // FIXME: if (GNUNET_YES != current_address) return; + if (GNUNET_YES != active) + return; for (i = 0; i < ats_count; i++) { if (GNUNET_ATS_QUALITY_NET_DELAY != ntohl (ats[i].type)) @@ -690,7 +692,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, GSF_plan_init (); GSF_pending_request_init_ (); GSF_connected_peer_init_ (); - GSF_ats = GNUNET_ATS_performance_init (GSF_cfg, &update_latencies, NULL); + GSF_ats = GNUNET_ATS_performance_init (GSF_cfg, NULL, NULL, &update_latencies, NULL); GSF_push_init_ (); GSF_put_init_ (); if ((GNUNET_OK != GNUNET_FS_indexing_init (cfg, GSF_dsh)) || -- cgit v1.2.3