diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-11 14:19:56 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-11 14:19:56 +0000 |
commit | 6267301ba1e100e901af3ce1a15f801f7529e884 (patch) | |
tree | 0bcbd978329b52d48464b95cb314ed904c77e2c2 /src/transport/test_transport_api_unreliability_constant.c | |
parent | 500783351ee1cfe6a76ed0bc75e3459f9a9c91bd (diff) | |
download | gnunet-6267301ba1e100e901af3ce1a15f801f7529e884.tar.gz gnunet-6267301ba1e100e901af3ce1a15f801f7529e884.zip |
Diffstat (limited to 'src/transport/test_transport_api_unreliability_constant.c')
-rw-r--r-- | src/transport/test_transport_api_unreliability_constant.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/transport/test_transport_api_unreliability_constant.c b/src/transport/test_transport_api_unreliability_constant.c index a74e6d2eb..c6062c96a 100644 --- a/src/transport/test_transport_api_unreliability_constant.c +++ b/src/transport/test_transport_api_unreliability_constant.c | |||
@@ -377,23 +377,8 @@ notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
377 | uint32_t ats_count) | 377 | uint32_t ats_count) |
378 | { | 378 | { |
379 | 379 | ||
380 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' connected to us (GNUNET_TIME_UNIT_SECONDS%p)!\n", | 380 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%4s' connected to us (%p)!\n", |
381 | GNUNET_i2s (peer), cls); | 381 | GNUNET_i2s (peer), cls); |
382 | |||
383 | if (cls == p1) | ||
384 | { | ||
385 | max_bps_p1 = 1024 * 1024 * 1024; | ||
386 | GNUNET_TRANSPORT_set_quota (p1->th, &p2->id, | ||
387 | GNUNET_BANDWIDTH_value_init (max_bps_p1), | ||
388 | GNUNET_BANDWIDTH_value_init (max_bps_p1)); | ||
389 | } | ||
390 | else if (cls == p2) | ||
391 | { | ||
392 | max_bps_p2 = 1024 * 1024 * 1024; | ||
393 | GNUNET_TRANSPORT_set_quota (p2->th, &p1->id, | ||
394 | GNUNET_BANDWIDTH_value_init (max_bps_p2), | ||
395 | GNUNET_BANDWIDTH_value_init (max_bps_p2)); | ||
396 | } | ||
397 | } | 382 | } |
398 | 383 | ||
399 | 384 | ||