aboutsummaryrefslogtreecommitdiff
path: root/src/util/perf_malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/perf_malloc.c')
-rw-r--r--src/util/perf_malloc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/perf_malloc.c b/src/util/perf_malloc.c
index 31f08dff0..f25529269 100644
--- a/src/util/perf_malloc.c
+++ b/src/util/perf_malloc.c
@@ -53,13 +53,13 @@ main (int argc, char *argv[])
53 53
54 start = GNUNET_TIME_absolute_get (); 54 start = GNUNET_TIME_absolute_get ();
55 kb = perfMalloc (); 55 kb = perfMalloc ();
56 printf ("Malloc perf took %llu ms\n", 56 printf ("Malloc perf took %s\n",
57 (unsigned long long) 57 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (start),
58 GNUNET_TIME_absolute_get_duration (start).rel_value); 58 GNUNET_YES));
59 GAUGER ("UTIL", "Allocation", 59 GAUGER ("UTIL", "Allocation",
60 kb / 1024 / (1 + 60 kb / 1024 / (1 +
61 GNUNET_TIME_absolute_get_duration 61 GNUNET_TIME_absolute_get_duration
62 (start).rel_value), "kb/s"); 62 (start).rel_value_us / 1000LL), "kb/ms");
63 return 0; 63 return 0;
64} 64}
65 65