diff options
Diffstat (limited to 'src/transport/test_transport_api_unreliability_constant.c')
-rw-r--r-- | src/transport/test_transport_api_unreliability_constant.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/transport/test_transport_api_unreliability_constant.c b/src/transport/test_transport_api_unreliability_constant.c index e5c244081..5217638c5 100644 --- a/src/transport/test_transport_api_unreliability_constant.c +++ b/src/transport/test_transport_api_unreliability_constant.c | |||
@@ -122,16 +122,15 @@ static void | |||
122 | end () | 122 | end () |
123 | { | 123 | { |
124 | unsigned long long delta; | 124 | unsigned long long delta; |
125 | |||
126 | char *value_name; | 125 | char *value_name; |
127 | 126 | ||
128 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Stopping peers\n"); | 127 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Stopping peers\n"); |
129 | 128 | ||
130 | delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value; | 129 | delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value_us; |
131 | FPRINTF (stderr, "\nThroughput was %llu kb/s\n", | 130 | FPRINTF (stderr, "\nThroughput was %llu kb/s\n", |
132 | total_bytes * 1000 / 1024 / delta); | 131 | total_bytes / 1024 / delta); |
133 | GNUNET_asprintf (&value_name, "unreliable_%s", test_plugin); | 132 | GNUNET_asprintf (&value_name, "unreliable_%s", test_plugin); |
134 | GAUGER ("TRANSPORT", value_name, (int) (total_bytes * 1000 / 1024 / delta), | 133 | GAUGER ("TRANSPORT", value_name, (int) (total_bytes / 1024 / delta), |
135 | "kb/s"); | 134 | "kb/s"); |
136 | GNUNET_free (value_name); | 135 | GNUNET_free (value_name); |
137 | 136 | ||