aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/test_mesh_small.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/test_mesh_small.c')
-rw-r--r--src/mesh/test_mesh_small.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c
index 30ea49223..dc9f9461c 100644
--- a/src/mesh/test_mesh_small.c
+++ b/src/mesh/test_mesh_small.c
@@ -192,14 +192,15 @@ show_end_data (void)
192 end_time = GNUNET_TIME_absolute_get(); 192 end_time = GNUNET_TIME_absolute_get();
193 total_time = GNUNET_TIME_absolute_get_difference(start_time, end_time); 193 total_time = GNUNET_TIME_absolute_get_difference(start_time, end_time);
194 FPRINTF (stderr, "\nResults of test \"%s\"\n", test_name); 194 FPRINTF (stderr, "\nResults of test \"%s\"\n", test_name);
195 FPRINTF (stderr, "Test time %llu ms\n", 195 FPRINTF (stderr, "Test time %s\n",
196 (unsigned long long) total_time.rel_value); 196 GNUNET_STRINGS_relative_time_to_string (total_time,
197 GNUNET_YES));
197 FPRINTF (stderr, "Test bandwidth: %f kb/s\n", 198 FPRINTF (stderr, "Test bandwidth: %f kb/s\n",
198 4 * TOTAL_PACKETS * 1.0 / total_time.rel_value); // 4bytes * ms 199 4 * TOTAL_PACKETS * 1.0 / (total_time.rel_value_us / 1000)); // 4bytes * ms
199 FPRINTF (stderr, "Test throughput: %f packets/s\n\n", 200 FPRINTF (stderr, "Test throughput: %f packets/s\n\n",
200 TOTAL_PACKETS * 1000.0 / total_time.rel_value); // packets * ms 201 TOTAL_PACKETS * 1000.0 / (total_time.rel_value_us / 1000)); // packets * ms
201 GAUGER ("MESH", test_name, 202 GAUGER ("MESH", test_name,
202 TOTAL_PACKETS * 1000.0 / total_time.rel_value, 203 TOTAL_PACKETS * 1000.0 / (total_time.rel_value_us / 1000),
203 "packets/s"); 204 "packets/s");
204} 205}
205 206