aboutsummaryrefslogtreecommitdiff
path: root/src/service/transport/test_communicator_basic.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/service/transport/test_communicator_basic.c')
-rw-r--r--src/service/transport/test_communicator_basic.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/service/transport/test_communicator_basic.c b/src/service/transport/test_communicator_basic.c
index fdbad0957..52a4cf2c4 100644
--- a/src/service/transport/test_communicator_basic.c
+++ b/src/service/transport/test_communicator_basic.c
@@ -27,7 +27,6 @@
27#include "platform.h" 27#include "platform.h"
28#include "gnunet_util_lib.h" 28#include "gnunet_util_lib.h"
29#include "transport-testing-communicator.h" 29#include "transport-testing-communicator.h"
30#include "gnunet_ats_transport_service.h"
31#include "gnunet_signatures.h" 30#include "gnunet_signatures.h"
32#include "gnunet_testing_lib.h" 31#include "gnunet_testing_lib.h"
33#include "transport.h" 32#include "transport.h"
@@ -103,14 +102,14 @@ static unsigned int iterations_left[NUM_PEERS];
103 102
104#define TIMEOUT_MULTIPLIER 1 103#define TIMEOUT_MULTIPLIER 1
105 104
106#define DELAY \ 105#define DEFAULT_DELAY \
107 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MICROSECONDS,200) 106 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MICROSECONDS,200)
108 107
109#define SHORT_BURST_WINDOW \ 108#define SHORT_BURST_WINDOW \
110 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS,2) 109 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS,2)
111 110
112#define LONG_BURST_WINDOW \ 111#define LONG_BURST_WINDOW \
113 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS,2) 112 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS,2)
114 113
115enum TestPhase 114enum TestPhase
116{ 115{
@@ -374,7 +373,7 @@ process_statistics (void *cls,
374 int is_persistent) 373 int is_persistent)
375{ 374{
376 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 375 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
377 "Statistic: Name %s and value %lu\n", 376 "Statistic: Name %s and value %" PRIu64 "\n",
378 name, 377 name,
379 value); 378 value);
380 if ((0 == strcmp ("rekey", test_name)) && (0 == strcmp ( 379 if ((0 == strcmp ("rekey", test_name)) && (0 == strcmp (
@@ -846,7 +845,8 @@ update_avg_latency (const char *payload, unsigned int peer_nr)
846 + latency.rel_value_us) 845 + latency.rel_value_us)
847 / num_received; 846 / num_received;
848 LOG (GNUNET_ERROR_TYPE_DEBUG, 847 LOG (GNUNET_ERROR_TYPE_DEBUG,
849 "Latency of received packet by peer %u: %s with avg latency %lu\n", 848 "Latency of received packet by peer %u: %s with avg latency %" PRIu64
849 "\n",
850 peer_nr, 850 peer_nr,
851 GNUNET_STRINGS_relative_time_to_string (latency, 851 GNUNET_STRINGS_relative_time_to_string (latency,
852 GNUNET_YES), 852 GNUNET_YES),
@@ -1191,7 +1191,7 @@ main (int argc,
1191 TEST_SECTION, 1191 TEST_SECTION,
1192 "DELAY_SHORT", 1192 "DELAY_SHORT",
1193 &delay_short_value)) 1193 &delay_short_value))
1194 delay_short = DELAY; 1194 delay_short = DEFAULT_DELAY;
1195 else 1195 else
1196 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MICROSECONDS, 1196 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MICROSECONDS,
1197 delay_short_value); 1197 delay_short_value);
@@ -1200,7 +1200,7 @@ main (int argc,
1200 TEST_SECTION, 1200 TEST_SECTION,
1201 "DELAY_SHORT", 1201 "DELAY_SHORT",
1202 &delay_long_value)) 1202 &delay_long_value))
1203 delay_long = DELAY; 1203 delay_long = DEFAULT_DELAY;
1204 else 1204 else
1205 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MICROSECONDS, 1205 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MICROSECONDS,
1206 delay_long_value); 1206 delay_long_value);