diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-04-18 13:46:37 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-04-18 13:46:37 +0000 |
commit | 865319f6059ecc3ae6e857327150613ba6d473dd (patch) | |
tree | 4718bd2ea5554e65f6a51df292f3fd28b8c1180f /src/transport | |
parent | faf6fc865e0964435b0079278c35c9d397d614f0 (diff) | |
download | gnunet-865319f6059ecc3ae6e857327150613ba6d473dd.tar.gz gnunet-865319f6059ecc3ae6e857327150613ba6d473dd.zip |
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/test_transport_ats.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/transport/test_transport_ats.c b/src/transport/test_transport_ats.c index d8787e6b1..6ce828f58 100644 --- a/src/transport/test_transport_ats.c +++ b/src/transport/test_transport_ats.c | |||
@@ -53,9 +53,9 @@ static char * config_file; | |||
53 | 53 | ||
54 | static struct GNUNET_TESTING_PeerGroup *pg; | 54 | static struct GNUNET_TESTING_PeerGroup *pg; |
55 | 55 | ||
56 | static GNUNET_SCHEDULER_TaskIdentifier shutdown_task; | 56 | static GNUNET_SCHEDULER_TaskIdentifier shutdown_task; |
57 | static GNUNET_SCHEDULER_TaskIdentifier stats_task; | 57 | static GNUNET_SCHEDULER_TaskIdentifier stats_task; |
58 | static GNUNET_SCHEDULER_TaskIdentifier send_task; | 58 | static GNUNET_SCHEDULER_TaskIdentifier send_task; |
59 | struct GNUNET_TESTING_Daemon * master_deamon; | 59 | struct GNUNET_TESTING_Daemon * master_deamon; |
60 | struct GNUNET_TESTING_Daemon * ping_deamon; | 60 | struct GNUNET_TESTING_Daemon * ping_deamon; |
61 | 61 | ||
@@ -384,7 +384,7 @@ int stats_cb (void *cls, | |||
384 | count ++; | 384 | count ++; |
385 | 385 | ||
386 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "(new: %i / modified: %i / unmodified: %i) of %i \n", c_new, c_modified, c_unmodified , MEASUREMENTS); | 386 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "(new: %i / modified: %i / unmodified: %i) of %i \n", c_new, c_modified, c_unmodified , MEASUREMENTS); |
387 | if ((count > MEASUREMENTS * 10) || ((c_modified >= MEASUREMENTS) && (c_new >= MEASUREMENTS) && (c_unmodified >= MEASUREMENTS))) | 387 | if ((c_modified >= MEASUREMENTS) && (c_new >= MEASUREMENTS) && (c_unmodified >= MEASUREMENTS)) |
388 | { | 388 | { |
389 | #if !VERBOSE | 389 | #if !VERBOSE |
390 | if (!machine_parsable) fprintf(stdout, "\n"); | 390 | if (!machine_parsable) fprintf(stdout, "\n"); |
@@ -467,7 +467,7 @@ stats_get_task (void *cls, | |||
467 | s_invalid = GNUNET_STATISTICS_get (stats, "transport", "ATS invalid solutions", TIMEOUT, NULL, &stats_cb, NULL); | 467 | s_invalid = GNUNET_STATISTICS_get (stats, "transport", "ATS invalid solutions", TIMEOUT, NULL, &stats_cb, NULL); |
468 | s_state = GNUNET_STATISTICS_get (stats, "transport", "ATS state", TIMEOUT, NULL, &stats_cb, NULL); | 468 | s_state = GNUNET_STATISTICS_get (stats, "transport", "ATS state", TIMEOUT, NULL, &stats_cb, NULL); |
469 | 469 | ||
470 | stats_task = GNUNET_SCHEDULER_add_delayed(GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 250), &stats_get_task, NULL); | 470 | stats_task = GNUNET_SCHEDULER_add_delayed(GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 100), &stats_get_task, NULL); |
471 | } | 471 | } |
472 | 472 | ||
473 | void | 473 | void |
@@ -686,7 +686,7 @@ main (int argc, char *argv[]) | |||
686 | 686 | ||
687 | machine_parsable = GNUNET_NO; | 687 | machine_parsable = GNUNET_NO; |
688 | peers = NUM_PEERS; | 688 | peers = NUM_PEERS; |
689 | config_file = "test_transport_ats_1addr.conf"; | 689 | config_file = "test_transport_ats_4addr.conf"; |
690 | 690 | ||
691 | int c = 0; | 691 | int c = 0; |
692 | if (argc >= 2) | 692 | if (argc >= 2) |