diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-19 07:45:09 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-19 07:45:09 +0000 |
commit | cfdc5b2d2c092cdb5efa5a64e9cc1df6ef26de58 (patch) | |
tree | 22bfffba75df4e295aa9861d9a28ac6aea2d2f3e /src/ats-tests/perf_ats.c | |
parent | 59402687b837c12990b00d94799323d327e608bd (diff) | |
download | gnunet-cfdc5b2d2c092cdb5efa5a64e9cc1df6ef26de58.tar.gz gnunet-cfdc5b2d2c092cdb5efa5a64e9cc1df6ef26de58.zip |
slave logging
Diffstat (limited to 'src/ats-tests/perf_ats.c')
-rw-r--r-- | src/ats-tests/perf_ats.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ats-tests/perf_ats.c b/src/ats-tests/perf_ats.c index 67ff7d0af..a3f60d375 100644 --- a/src/ats-tests/perf_ats.c +++ b/src/ats-tests/perf_ats.c | |||
@@ -359,21 +359,21 @@ static size_t | |||
359 | comm_send_ready (void *cls, size_t size, void *buf) | 359 | comm_send_ready (void *cls, size_t size, void *buf) |
360 | { | 360 | { |
361 | static char msgbuf[TEST_MESSAGE_SIZE]; | 361 | static char msgbuf[TEST_MESSAGE_SIZE]; |
362 | struct BenchmarkPartner *partner = cls; | 362 | struct BenchmarkPartner *p = cls; |
363 | struct GNUNET_MessageHeader *msg; | 363 | struct GNUNET_MessageHeader *msg; |
364 | 364 | ||
365 | if (GNUNET_YES == test_core) | 365 | if (GNUNET_YES == test_core) |
366 | partner->cth = NULL; | 366 | p->cth = NULL; |
367 | else | 367 | else |
368 | partner->tth = NULL; | 368 | p->tth = NULL; |
369 | 369 | ||
370 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Master [%u]: Sending PING to [%u]\n", | 370 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Master [%u]: Sending PING to [%u]\n", |
371 | partner->me->no, partner->dest->no); | 371 | p->me->no, p->dest->no); |
372 | 372 | ||
373 | partner->messages_sent++; | 373 | p->messages_sent++; |
374 | partner->bytes_sent += TEST_MESSAGE_SIZE; | 374 | p->bytes_sent += TEST_MESSAGE_SIZE; |
375 | partner->me->total_messages_sent++; | 375 | p->me->total_messages_sent++; |
376 | partner->me->total_bytes_sent += TEST_MESSAGE_SIZE; | 376 | p->me->total_bytes_sent += TEST_MESSAGE_SIZE; |
377 | 377 | ||
378 | msg = (struct GNUNET_MessageHeader *) &msgbuf; | 378 | msg = (struct GNUNET_MessageHeader *) &msgbuf; |
379 | memset (&msgbuf, 'a', TEST_MESSAGE_SIZE); | 379 | memset (&msgbuf, 'a', TEST_MESSAGE_SIZE); |
@@ -661,8 +661,8 @@ comm_handle_ping (void *cls, const struct GNUNET_PeerIdentity *other, | |||
661 | struct BenchmarkPartner *p = NULL; | 661 | struct BenchmarkPartner *p = NULL; |
662 | for (c_m = 0; c_m < num_masters; c_m++) | 662 | for (c_m = 0; c_m < num_masters; c_m++) |
663 | { | 663 | { |
664 | if (0 | 664 | /* Find a partner with other as destination */ |
665 | == memcmp (other, &me->partners[c_m].dest->id, | 665 | if (0 == memcmp (other, &me->partners[c_m].dest->id, |
666 | sizeof(struct GNUNET_PeerIdentity))) | 666 | sizeof(struct GNUNET_PeerIdentity))) |
667 | { | 667 | { |
668 | p = &me->partners[c_m]; | 668 | p = &me->partners[c_m]; |