diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-02-03 12:36:25 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-02-03 12:36:25 +0000 |
commit | 23c87f2aea815cbd6078ab75b5b8fe8cf8f6ee31 (patch) | |
tree | af24b05a1b2f4a2829ee044b7e7c7161df6e9989 /src/ats-tests/gnunet-ats-sim.c | |
parent | c25e21e16f0079b94b4ee71240013e16b425240d (diff) | |
download | gnunet-23c87f2aea815cbd6078ab75b5b8fe8cf8f6ee31.tar.gz gnunet-23c87f2aea815cbd6078ab75b5b8fe8cf8f6ee31.zip |
various fixes
Diffstat (limited to 'src/ats-tests/gnunet-ats-sim.c')
-rw-r--r-- | src/ats-tests/gnunet-ats-sim.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ats-tests/gnunet-ats-sim.c b/src/ats-tests/gnunet-ats-sim.c index 7ed667d23..02bb65776 100644 --- a/src/ats-tests/gnunet-ats-sim.c +++ b/src/ats-tests/gnunet-ats-sim.c | |||
@@ -123,12 +123,21 @@ evaluate (struct GNUNET_TIME_Relative duration_total) | |||
123 | static void | 123 | static void |
124 | do_shutdown () | 124 | do_shutdown () |
125 | { | 125 | { |
126 | fprintf (stderr, "Shutdown\n"); | ||
126 | /* timeout */ | 127 | /* timeout */ |
128 | if (NULL != l) | ||
129 | { | ||
130 | GNUNET_ATS_TEST_logging_stop (l); | ||
131 | GNUNET_ATS_TEST_logging_clean_up (l); | ||
132 | l = NULL; | ||
133 | } | ||
127 | if (NULL != e) | 134 | if (NULL != e) |
128 | { | 135 | { |
136 | GNUNET_break (0); | ||
129 | GNUNET_ATS_TEST_experimentation_stop (e); | 137 | GNUNET_ATS_TEST_experimentation_stop (e); |
130 | e = NULL; | 138 | e = NULL; |
131 | } | 139 | } |
140 | GNUNET_break (0); | ||
132 | GNUNET_ATS_TEST_shutdown_topology (); | 141 | GNUNET_ATS_TEST_shutdown_topology (); |
133 | } | 142 | } |
134 | 143 | ||
@@ -237,6 +246,7 @@ static void topology_setup_done (void *cls, | |||
237 | */ | 246 | */ |
238 | /* Example: Generate traffic with a sinus form, a base rate of | 247 | /* Example: Generate traffic with a sinus form, a base rate of |
239 | * 1000 Bytes/s, an amplitude of (max-base), and a period of 1 minute */ | 248 | * 1000 Bytes/s, an amplitude of (max-base), and a period of 1 minute */ |
249 | /* | ||
240 | GNUNET_ATS_TEST_generate_traffic_start (&masters[c_m], | 250 | GNUNET_ATS_TEST_generate_traffic_start (&masters[c_m], |
241 | &masters[c_m].partners[c_s], | 251 | &masters[c_m].partners[c_s], |
242 | GNUNET_ATS_TEST_TG_SINUS, | 252 | GNUNET_ATS_TEST_TG_SINUS, |
@@ -244,6 +254,7 @@ static void topology_setup_done (void *cls, | |||
244 | 2000, | 254 | 2000, |
245 | GNUNET_TIME_UNIT_MINUTES, | 255 | GNUNET_TIME_UNIT_MINUTES, |
246 | GNUNET_TIME_UNIT_FOREVER_REL); | 256 | GNUNET_TIME_UNIT_FOREVER_REL); |
257 | */ | ||
247 | } | 258 | } |
248 | } | 259 | } |
249 | 260 | ||