From 4258b3b6009218487de37ae1b2334c9acc35dc4e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 12 Oct 2011 13:20:53 +0000 Subject: [PATCH] log --- src/ats/ats_api.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) ar->bandwidth_out = sbc->bw_out; GNUNET_BANDWIDTH_tracker_update_quota (&ar->available_recv_window, ar->bandwidth_in); + GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, + "ats-api", + "Bandwidth assigned to peer %s is i:%u/o:%u bytes/s\n", + GNUNET_i2s ((const struct GNUNET_PeerIdentity *) key), + ntohl (ar->bandwidth_in.value__), + ntohl (ar->bandwidth_out.value__)); if (NULL != sbc->atc->alloc_cb) sbc->atc->alloc_cb (sbc->atc->alloc_cb_cls, (const struct GNUNET_PeerIdentity *) key, @@ -235,6 +241,7 @@ suggest_address (void *cls, const GNUNET_HashCode * key, void *value) return GNUNET_NO; } + int map_it (void *cls, const GNUNET_HashCode * key, void *value) { -- 2.25.1