diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-19 08:59:15 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-19 08:59:15 +0000 |
commit | de0c0bc6e16e21087f8f7eb6c9d5450884e5fae8 (patch) | |
tree | b95158705084360a54be3ef45ad95a3e6207ff07 /src/ats-tests/perf_ats.c | |
parent | 50314c5f4bacdc8a296f176a124fa505ed834cf0 (diff) | |
download | gnunet-de0c0bc6e16e21087f8f7eb6c9d5450884e5fae8.tar.gz gnunet-de0c0bc6e16e21087f8f7eb6c9d5450884e5fae8.zip |
stop logging only when started
Diffstat (limited to 'src/ats-tests/perf_ats.c')
-rw-r--r-- | src/ats-tests/perf_ats.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ats-tests/perf_ats.c b/src/ats-tests/perf_ats.c index ad936ee53..b4ff92b95 100644 --- a/src/ats-tests/perf_ats.c +++ b/src/ats-tests/perf_ats.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include "perf_ats.h" | 31 | #include "perf_ats.h" |
32 | 32 | ||
33 | #define TEST_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10) | 33 | #define TEST_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10) |
34 | #define BENCHMARK_DURATION GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 2) | 34 | #define BENCHMARK_DURATION GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5) |
35 | #define TESTNAME_PREFIX "perf_ats_" | 35 | #define TESTNAME_PREFIX "perf_ats_" |
36 | #define DEFAULT_SLAVES_NUM 3 | 36 | #define DEFAULT_SLAVES_NUM 3 |
37 | #define DEFAULT_MASTERS_NUM 1 | 37 | #define DEFAULT_MASTERS_NUM 1 |
@@ -437,8 +437,6 @@ do_benchmark () | |||
437 | progress_task = GNUNET_SCHEDULER_add_now (&print_progress, NULL ); | 437 | progress_task = GNUNET_SCHEDULER_add_now (&print_progress, NULL ); |
438 | 438 | ||
439 | /* Start sending test messages */ | 439 | /* Start sending test messages */ |
440 | if (GNUNET_YES == logging) | ||
441 | perf_logging_start (testname, mps, num_masters); | ||
442 | for (c_m = 0; c_m < num_masters; c_m++) | 440 | for (c_m = 0; c_m < num_masters; c_m++) |
443 | { | 441 | { |
444 | for (c_s = 0; c_s < num_slaves; c_s++) | 442 | for (c_s = 0; c_s < num_slaves; c_s++) |
@@ -457,6 +455,8 @@ do_benchmark () | |||
457 | if (pref_val != GNUNET_ATS_PREFERENCE_END) | 455 | if (pref_val != GNUNET_ATS_PREFERENCE_END) |
458 | mps[c_m].ats_task = GNUNET_SCHEDULER_add_now (&ats_pref_task, &mps[c_m]); | 456 | mps[c_m].ats_task = GNUNET_SCHEDULER_add_now (&ats_pref_task, &mps[c_m]); |
459 | } | 457 | } |
458 | if (GNUNET_YES == logging) | ||
459 | perf_logging_start (testname, mps, num_masters); | ||
460 | 460 | ||
461 | } | 461 | } |
462 | 462 | ||