diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-20 13:17:21 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-20 13:17:21 +0000 |
commit | d4347e0238b041e24ffc71fc8a76bb43fe5b2cef (patch) | |
tree | 276a51a3a280a13c0161b56fbd95fd59d35b8029 /src/ats-tests/perf_ats.c | |
parent | 5a45188a6d8bf111023b9c6cd81915c4b94b2fb3 (diff) | |
download | gnunet-d4347e0238b041e24ffc71fc8a76bb43fe5b2cef.tar.gz gnunet-d4347e0238b041e24ffc71fc8a76bb43fe5b2cef.zip |
logging application layer RTT
Diffstat (limited to 'src/ats-tests/perf_ats.c')
-rw-r--r-- | src/ats-tests/perf_ats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ats-tests/perf_ats.c b/src/ats-tests/perf_ats.c index d18527d68..53d392a30 100644 --- a/src/ats-tests/perf_ats.c +++ b/src/ats-tests/perf_ats.c | |||
@@ -195,7 +195,7 @@ evaluate () | |||
195 | "%c Master [%u] -> Slave [%u]: Average application layer RTT: %u ms\n", | 195 | "%c Master [%u] -> Slave [%u]: Average application layer RTT: %u ms\n", |
196 | (mp->pref_partner == p->dest) ? '*' : ' ', | 196 | (mp->pref_partner == p->dest) ? '*' : ' ', |
197 | mp->no, p->dest->no, | 197 | mp->no, p->dest->no, |
198 | p->total_app_delay / (1000 * p->messages_sent)); | 198 | p->total_app_rtt / (1000 * p->messages_sent)); |
199 | } | 199 | } |
200 | } | 200 | } |
201 | } | 201 | } |
@@ -765,7 +765,7 @@ comm_handle_pong (void *cls, const struct GNUNET_PeerIdentity *other, | |||
765 | p->bytes_received += TEST_MESSAGE_SIZE; | 765 | p->bytes_received += TEST_MESSAGE_SIZE; |
766 | p->me->total_messages_received++; | 766 | p->me->total_messages_received++; |
767 | p->me->total_bytes_received += TEST_MESSAGE_SIZE; | 767 | p->me->total_bytes_received += TEST_MESSAGE_SIZE; |
768 | p->total_app_delay += GNUNET_TIME_absolute_get_difference(p->last_message_sent, | 768 | p->total_app_rtt += GNUNET_TIME_absolute_get_difference(p->last_message_sent, |
769 | GNUNET_TIME_absolute_get()).rel_value_us; | 769 | GNUNET_TIME_absolute_get()).rel_value_us; |
770 | 770 | ||
771 | comm_schedule_send (p); | 771 | comm_schedule_send (p); |