diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-12-25 13:35:19 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-12-25 13:35:19 +0100 |
commit | 817ec33a8844965269f99950b4f198c8f237c130 (patch) | |
tree | fdfaebb1c9b53423043101d4841a9f88e7c6d598 /src | |
parent | 878030ecf7ed4951b26dd00f934fb598d73ebef3 (diff) | |
download | gnunet-817ec33a8844965269f99950b4f198c8f237c130.tar.gz gnunet-817ec33a8844965269f99950b4f198c8f237c130.zip |
fix warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/test_communicator_basic.c | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/src/transport/test_communicator_basic.c b/src/transport/test_communicator_basic.c index 7ae50be05..f697f17b3 100644 --- a/src/transport/test_communicator_basic.c +++ b/src/transport/test_communicator_basic.c | |||
@@ -238,7 +238,7 @@ long_test (void *cls) | |||
238 | NULL); | 238 | NULL); |
239 | 239 | ||
240 | GNUNET_SCHEDULER_add_now (&long_test, NULL); | 240 | GNUNET_SCHEDULER_add_now (&long_test, NULL); |
241 | //if (num_sent == BURST_PACKETS) | 241 | // if (num_sent == BURST_PACKETS) |
242 | // GNUNET_SCHEDULER_add_delayed (LONG_BURST_WINDOW, | 242 | // GNUNET_SCHEDULER_add_delayed (LONG_BURST_WINDOW, |
243 | // &long_test, NULL); | 243 | // &long_test, NULL); |
244 | return; | 244 | return; |
@@ -269,12 +269,10 @@ short_test (void *cls) | |||
269 | GNUNET_SCHEDULER_add_delayed (SHORT_BURST_WINDOW, | 269 | GNUNET_SCHEDULER_add_delayed (SHORT_BURST_WINDOW, |
270 | &short_test, NULL); | 270 | &short_test, NULL); |
271 | return; | 271 | return; |
272 | }*/ | 272 | }*/} |
273 | } | ||
274 | } | 273 | } |
275 | 274 | ||
276 | 275 | ||
277 | |||
278 | /** | 276 | /** |
279 | * @brief Handle opening of queue | 277 | * @brief Handle opening of queue |
280 | * | 278 | * |
@@ -356,12 +354,14 @@ incoming_message_cb (void *cls, | |||
356 | "Short size packet test done.\n"); | 354 | "Short size packet test done.\n"); |
357 | GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, | 355 | GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, |
358 | "%lu/%lu packets in %llu us (%llu kb/s) -- avg latency: %llu us\n", | 356 | "%lu/%lu packets in %llu us (%llu kb/s) -- avg latency: %llu us\n", |
359 | num_received, | 357 | (unsigned long) num_received, |
360 | num_sent, | 358 | (unsigned long) num_sent, |
361 | duration.rel_value_us, | 359 | (unsigned long long) duration.rel_value_us, |
362 | (SHORT_MESSAGE_SIZE * num_received) / (duration.rel_value_us | 360 | (unsigned long long) ((SHORT_MESSAGE_SIZE * num_received) |
363 | / 1000), | 361 | / (duration.rel_value_us |
364 | avg_latency); | 362 | / |
363 | 1000)), | ||
364 | (unsigned long long) avg_latency); | ||
365 | start_long = GNUNET_TIME_absolute_get (); | 365 | start_long = GNUNET_TIME_absolute_get (); |
366 | phase = BURST_LONG; | 366 | phase = BURST_LONG; |
367 | num_sent = 0; | 367 | num_sent = 0; |
@@ -390,12 +390,14 @@ incoming_message_cb (void *cls, | |||
390 | "Long size packet test done.\n"); | 390 | "Long size packet test done.\n"); |
391 | GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, | 391 | GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, |
392 | "%lu/%lu packets in %llu us (%llu kb/s) -- avg latency: %llu us\n", | 392 | "%lu/%lu packets in %llu us (%llu kb/s) -- avg latency: %llu us\n", |
393 | num_received, | 393 | (unsigned long) num_received, |
394 | num_sent, | 394 | (unsigned long) num_sent, |
395 | duration.rel_value_us, | 395 | (unsigned long long) duration.rel_value_us, |
396 | (LONG_MESSAGE_SIZE * num_received) / (duration.rel_value_us | 396 | (unsigned long long) ((LONG_MESSAGE_SIZE * num_received) |
397 | / 1000), | 397 | / (duration.rel_value_us |
398 | avg_latency); | 398 | / |
399 | 1000)), | ||
400 | (unsigned long long) avg_latency); | ||
399 | ack = 10; | 401 | ack = 10; |
400 | phase = SIZE_CHECK; | 402 | phase = SIZE_CHECK; |
401 | num_received = 0; | 403 | num_received = 0; |
@@ -417,9 +419,9 @@ incoming_message_cb (void *cls, | |||
417 | "Size packet test done.\n"); | 419 | "Size packet test done.\n"); |
418 | GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, | 420 | GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, |
419 | "%lu/%lu packets -- avg latency: %llu us\n", | 421 | "%lu/%lu packets -- avg latency: %llu us\n", |
420 | num_received, | 422 | (unsigned long) num_received, |
421 | num_sent, | 423 | (unsigned long) num_sent, |
422 | avg_latency); | 424 | (unsigned long long) avg_latency); |
423 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 425 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
424 | "Finished\n"); | 426 | "Finished\n"); |
425 | GNUNET_SCHEDULER_cancel (to_task); | 427 | GNUNET_SCHEDULER_cancel (to_task); |