diff options
author | ng0 <ng0@n0.is> | 2019-09-06 22:46:29 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-06 22:46:29 +0000 |
commit | 6e599264ad13e8fc105493d74d7c11d46f8739ed (patch) | |
tree | 169bef1ecbade5a659831fb169f3ae6943af127f /src/cadet/test_cadet.c | |
parent | 4f13bc15113021ebf71d5d81e99bc29f8a07fc9c (diff) | |
download | gnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.tar.gz gnunet-6e599264ad13e8fc105493d74d7c11d46f8739ed.zip |
first step to remove plibc
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 | ||