diff options
Diffstat (limited to 'src/cadet/test_cadet.c')
-rw-r--r-- | src/cadet/test_cadet.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cadet/test_cadet.c b/src/cadet/test_cadet.c index 80a6e8227..5a28b439e 100644 --- a/src/cadet/test_cadet.c +++ b/src/cadet/test_cadet.c | |||
@@ -280,16 +280,16 @@ show_end_data (void) | |||
280 | 280 | ||
281 | end_time = GNUNET_TIME_absolute_get (); | 281 | end_time = GNUNET_TIME_absolute_get (); |
282 | total_time = GNUNET_TIME_absolute_get_difference (start_time, end_time); | 282 | total_time = GNUNET_TIME_absolute_get_difference (start_time, end_time); |
283 | FPRINTF (stderr, | 283 | fprintf (stderr, |
284 | "\nResults of test \"%s\"\n", | 284 | "\nResults of test \"%s\"\n", |
285 | test_name); | 285 | test_name); |
286 | FPRINTF (stderr, | 286 | fprintf (stderr, |
287 | "Test time %s\n", | 287 | "Test time %s\n", |
288 | GNUNET_STRINGS_relative_time_to_string (total_time, GNUNET_YES)); | 288 | GNUNET_STRINGS_relative_time_to_string (total_time, GNUNET_YES)); |
289 | FPRINTF (stderr, | 289 | fprintf (stderr, |
290 | "Test bandwidth: %f kb/s\n", | 290 | "Test bandwidth: %f kb/s\n", |
291 | 4 * total_packets * 1.0 / (total_time.rel_value_us / 1000)); // 4bytes * ms | 291 | 4 * total_packets * 1.0 / (total_time.rel_value_us / 1000)); // 4bytes * ms |
292 | FPRINTF (stderr, | 292 | fprintf (stderr, |
293 | "Test throughput: %f packets/s\n\n", | 293 | "Test throughput: %f packets/s\n\n", |
294 | total_packets * 1000.0 / (total_time.rel_value_us / 1000)); // packets * ms | 294 | total_packets * 1000.0 / (total_time.rel_value_us / 1000)); // packets * ms |
295 | GAUGER ("CADET", | 295 | GAUGER ("CADET", |
@@ -1171,7 +1171,7 @@ main (int argc, char *argv[]) | |||
1171 | short_time = SHORT_TIME; | 1171 | short_time = SHORT_TIME; |
1172 | if (-1 == GNUNET_GETOPT_run (argv[0], options, argc, argv)) | 1172 | if (-1 == GNUNET_GETOPT_run (argv[0], options, argc, argv)) |
1173 | { | 1173 | { |
1174 | FPRINTF (stderr, "test failed: problem with CLI parameters\n"); | 1174 | fprintf (stderr, "test failed: problem with CLI parameters\n"); |
1175 | exit (1); | 1175 | exit (1); |
1176 | } | 1176 | } |
1177 | 1177 | ||