diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-12 13:20:53 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-12 13:20:53 +0000 |
commit | 4258b3b6009218487de37ae1b2334c9acc35dc4e (patch) | |
tree | db4bf42c651e5cfbbcbd66437b69961e59da05d7 /src/ats/ats_api.c | |
parent | ee3948a06fc074593734be74b845a38e1e32eb45 (diff) | |
download | gnunet-4258b3b6009218487de37ae1b2334c9acc35dc4e.tar.gz gnunet-4258b3b6009218487de37ae1b2334c9acc35dc4e.zip |
log
Diffstat (limited to 'src/ats/ats_api.c')
-rw-r--r-- | src/ats/ats_api.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ats/ats_api.c b/src/ats/ats_api.c index 20cf62ca7..828b163b3 100644 --- a/src/ats/ats_api.c +++ b/src/ats/ats_api.c | |||
@@ -142,6 +142,12 @@ set_bw_connections (void *cls, const GNUNET_HashCode * key, void *value) | |||
142 | ar->bandwidth_out = sbc->bw_out; | 142 | ar->bandwidth_out = sbc->bw_out; |
143 | GNUNET_BANDWIDTH_tracker_update_quota (&ar->available_recv_window, | 143 | GNUNET_BANDWIDTH_tracker_update_quota (&ar->available_recv_window, |
144 | ar->bandwidth_in); | 144 | ar->bandwidth_in); |
145 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, | ||
146 | "ats-api", | ||
147 | "Bandwidth assigned to peer %s is i:%u/o:%u bytes/s\n", | ||
148 | GNUNET_i2s ((const struct GNUNET_PeerIdentity *) key), | ||
149 | ntohl (ar->bandwidth_in.value__), | ||
150 | ntohl (ar->bandwidth_out.value__)); | ||
145 | if (NULL != sbc->atc->alloc_cb) | 151 | if (NULL != sbc->atc->alloc_cb) |
146 | sbc->atc->alloc_cb (sbc->atc->alloc_cb_cls, | 152 | sbc->atc->alloc_cb (sbc->atc->alloc_cb_cls, |
147 | (const struct GNUNET_PeerIdentity *) key, | 153 | (const struct GNUNET_PeerIdentity *) key, |
@@ -235,6 +241,7 @@ suggest_address (void *cls, const GNUNET_HashCode * key, void *value) | |||
235 | return GNUNET_NO; | 241 | return GNUNET_NO; |
236 | } | 242 | } |
237 | 243 | ||
244 | |||
238 | int | 245 | int |
239 | map_it (void *cls, const GNUNET_HashCode * key, void *value) | 246 | map_it (void *cls, const GNUNET_HashCode * key, void *value) |
240 | { | 247 | { |