summaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_manipulation_cfg.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-05-16 07:21:59 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-05-16 07:21:59 +0000
commitc602efc30bd552284e13e5d6810688cb195872d8 (patch)
treee787f6afde878fa5348581d69e1b544efc94e2de /src/transport/test_transport_api_manipulation_cfg.c
parent1466ead1e0ddda5bff906820fc0351e57b899ad3 (diff)
test failing on pi
Diffstat (limited to 'src/transport/test_transport_api_manipulation_cfg.c')
-rw-r--r--src/transport/test_transport_api_manipulation_cfg.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/transport/test_transport_api_manipulation_cfg.c b/src/transport/test_transport_api_manipulation_cfg.c
index 87ee3f5f6..b9063ef5e 100644
--- a/src/transport/test_transport_api_manipulation_cfg.c
+++ b/src/transport/test_transport_api_manipulation_cfg.c
@@ -257,6 +257,15 @@ notify_ready (void *cls, size_t size, void *buf)
hdr->type = htons (TEST_MESSAGE_TYPE);
}
+ if (0 == messages_recv)
+ {
+ start_normal = GNUNET_TIME_absolute_get();
+ }
+ if (1 == messages_recv)
+ {
+ start_delayed = GNUNET_TIME_absolute_get();
+ }
+
char *ps = GNUNET_strdup (GNUNET_i2s (&p2->id));
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Peer %u (`%4s') sending message with type %u and size %u bytes to peer %u (`%4s')\n",
@@ -283,14 +292,6 @@ sendtask (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
GNUNET_free (receiver_s);
- if (0 == messages_recv)
- {
- start_normal = GNUNET_TIME_absolute_get();
- }
- if (1 == messages_recv)
- {
- start_delayed = GNUNET_TIME_absolute_get();
- }
s_sending = GNUNET_YES;
th = GNUNET_TRANSPORT_notify_transmit_ready (p2->th, &p1->id, TEST_MESSAGE_SIZE, 0,