diff options
Diffstat (limited to 'src/ats-test')
-rw-r--r-- | src/ats-test/test_transport_ats_multiple_peers.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ats-test/test_transport_ats_multiple_peers.c b/src/ats-test/test_transport_ats_multiple_peers.c index e9d0baf25..7425ff45d 100644 --- a/src/ats-test/test_transport_ats_multiple_peers.c +++ b/src/ats-test/test_transport_ats_multiple_peers.c | |||
@@ -225,7 +225,7 @@ evaluate_measurements () | |||
225 | stddev[0] /= c_new; | 225 | stddev[0] /= c_new; |
226 | stddev[0] = sqrt (stddev[0]); | 226 | stddev[0] = sqrt (stddev[0]); |
227 | if (!machine_parsable) | 227 | if (!machine_parsable) |
228 | fprintf (stderr, "new, %i measurements, average: %f stddev: %f\n", c_new, | 228 | FPRINTF (stderr, "new, %i measurements, average: %f stddev: %f\n", c_new, |
229 | average[0], stddev[0]); | 229 | average[0], stddev[0]); |
230 | 230 | ||
231 | average[1] = 0.0; | 231 | average[1] = 0.0; |
@@ -245,7 +245,7 @@ evaluate_measurements () | |||
245 | stddev[1] /= c_modified; | 245 | stddev[1] /= c_modified; |
246 | stddev[1] = sqrt (stddev[1]); | 246 | stddev[1] = sqrt (stddev[1]); |
247 | if (!machine_parsable) | 247 | if (!machine_parsable) |
248 | fprintf (stderr, "modified, %i measurements, average: %f stddev: %f\n", | 248 | FPRINTF (stderr, "modified, %i measurements, average: %f stddev: %f\n", |
249 | c_modified, average[1], stddev[1]); | 249 | c_modified, average[1], stddev[1]); |
250 | 250 | ||
251 | average[2] = 0.0; | 251 | average[2] = 0.0; |
@@ -265,11 +265,11 @@ evaluate_measurements () | |||
265 | stddev[2] = sqrt (stddev[2]); | 265 | stddev[2] = sqrt (stddev[2]); |
266 | 266 | ||
267 | if (!machine_parsable) | 267 | if (!machine_parsable) |
268 | fprintf (stderr, "unmodified, %i measurements, average: %f stddev: %f\n", | 268 | FPRINTF (stderr, "unmodified, %i measurements, average: %f stddev: %f\n", |
269 | c_unmodified, average[2], stddev[2]); | 269 | c_unmodified, average[2], stddev[2]); |
270 | 270 | ||
271 | if (machine_parsable) | 271 | if (machine_parsable) |
272 | fprintf (stderr, | 272 | FPRINTF (stderr, |
273 | "peers,%i,mechs,%llu," "new,%i,%f,%f," "mod,%i,%f,%f," | 273 | "peers,%i,mechs,%llu," "new,%i,%f,%f," "mod,%i,%f,%f," |
274 | "unmod,%i,%f,%f\n", peers - 1, | 274 | "unmod,%i,%f,%f\n", peers - 1, |
275 | (unsigned long long) results_unmodified[0].mechs, c_new, | 275 | (unsigned long long) results_unmodified[0].mechs, c_new, |
@@ -337,7 +337,7 @@ stats_cb (void *cls, const char *subsystem, const char *name, uint64_t value, | |||
337 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "All %llu peers connected\n", value); | 337 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "All %llu peers connected\n", value); |
338 | #if !VERBOSE | 338 | #if !VERBOSE |
339 | if (!machine_parsable) | 339 | if (!machine_parsable) |
340 | fprintf (stderr, "%i", count); | 340 | FPRINTF (stderr, "%i", count); |
341 | #endif | 341 | #endif |
342 | } | 342 | } |
343 | 343 | ||
@@ -395,7 +395,7 @@ stats_cb (void *cls, const char *subsystem, const char *name, uint64_t value, | |||
395 | } | 395 | } |
396 | count++; | 396 | count++; |
397 | #if VERBOSE | 397 | #if VERBOSE |
398 | fprintf (stderr, "(new: %i / modified: %i / unmodified: %i) of %i \n", | 398 | FPRINTF (stderr, "(new: %i / modified: %i / unmodified: %i) of %i \n", |
399 | c_new, c_modified, c_unmodified, MEASUREMENTS); | 399 | c_new, c_modified, c_unmodified, MEASUREMENTS); |
400 | #endif | 400 | #endif |
401 | if ((c_modified >= MEASUREMENTS) && (c_new >= MEASUREMENTS) && | 401 | if ((c_modified >= MEASUREMENTS) && (c_new >= MEASUREMENTS) && |
@@ -403,7 +403,7 @@ stats_cb (void *cls, const char *subsystem, const char *name, uint64_t value, | |||
403 | { | 403 | { |
404 | #if !VERBOSE | 404 | #if !VERBOSE |
405 | if (!machine_parsable) | 405 | if (!machine_parsable) |
406 | fprintf (stdout, "\n"); | 406 | FPRINTF (stdout, "\n"); |
407 | #endif | 407 | #endif |
408 | if (stats_task != GNUNET_SCHEDULER_NO_TASK) | 408 | if (stats_task != GNUNET_SCHEDULER_NO_TASK) |
409 | { | 409 | { |
@@ -418,7 +418,7 @@ stats_cb (void *cls, const char *subsystem, const char *name, uint64_t value, | |||
418 | current.timestamp = value; | 418 | current.timestamp = value; |
419 | #if !VERBOSE | 419 | #if !VERBOSE |
420 | if (!machine_parsable) | 420 | if (!machine_parsable) |
421 | fprintf (stderr, "..%i", count); | 421 | FPRINTF (stderr, "..%i", count); |
422 | #endif | 422 | #endif |
423 | return GNUNET_OK; | 423 | return GNUNET_OK; |
424 | } | 424 | } |