aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-03-25 16:06:07 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-03-25 16:06:07 +0000
commit4596a20eb4c61cf84e3a88a881597ba05114d482 (patch)
tree4659b0eac3f0d4ee862516e59372c0c568b98ffd /src/fs/gnunet-service-fs.c
parentcc67bae38c54cbaf2122ee3aa0762e7f2cb04edf (diff)
downloadgnunet-4596a20eb4c61cf84e3a88a881597ba05114d482.tar.gz
gnunet-4596a20eb4c61cf84e3a88a881597ba05114d482.zip
ats api change
Diffstat (limited to 'src/fs/gnunet-service-fs.c')
-rw-r--r--src/fs/gnunet-service-fs.c6
1 files changed, 4 insertions, 2 deletions
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)
243static void 243static void
244update_latencies (void *cls, 244update_latencies (void *cls,
245 const struct GNUNET_HELLO_Address *address, 245 const struct GNUNET_HELLO_Address *address,
246 unsigned int active,
246 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, 247 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out,
247 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, 248 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
248 const struct GNUNET_ATS_Information *ats, 249 const struct GNUNET_ATS_Information *ats,
@@ -251,7 +252,8 @@ update_latencies (void *cls,
251 unsigned int i; 252 unsigned int i;
252 struct GNUNET_TIME_Relative latency; 253 struct GNUNET_TIME_Relative latency;
253 254
254 // FIXME: if (GNUNET_YES != current_address) return; 255 if (GNUNET_YES != active)
256 return;
255 for (i = 0; i < ats_count; i++) 257 for (i = 0; i < ats_count; i++)
256 { 258 {
257 if (GNUNET_ATS_QUALITY_NET_DELAY != ntohl (ats[i].type)) 259 if (GNUNET_ATS_QUALITY_NET_DELAY != ntohl (ats[i].type))
@@ -690,7 +692,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
690 GSF_plan_init (); 692 GSF_plan_init ();
691 GSF_pending_request_init_ (); 693 GSF_pending_request_init_ ();
692 GSF_connected_peer_init_ (); 694 GSF_connected_peer_init_ ();
693 GSF_ats = GNUNET_ATS_performance_init (GSF_cfg, &update_latencies, NULL); 695 GSF_ats = GNUNET_ATS_performance_init (GSF_cfg, NULL, NULL, &update_latencies, NULL);
694 GSF_push_init_ (); 696 GSF_push_init_ ();
695 GSF_put_init_ (); 697 GSF_put_init_ ();
696 if ((GNUNET_OK != GNUNET_FS_indexing_init (cfg, GSF_dsh)) || 698 if ((GNUNET_OK != GNUNET_FS_indexing_init (cfg, GSF_dsh)) ||