aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_quota_compliance.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/test_core_quota_compliance.c')
-rw-r--r--src/core/test_core_quota_compliance.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c
index e09417642..9eb4d841f 100644
--- a/src/core/test_core_quota_compliance.c
+++ b/src/core/test_core_quota_compliance.c
@@ -231,10 +231,10 @@ measurement_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
231 FPRINTF (stdout, "%s", "\n"); 231 FPRINTF (stdout, "%s", "\n");
232 running = GNUNET_NO; 232 running = GNUNET_NO;
233 233
234 delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value; 234 delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value_us;
235 235
236 throughput_out = total_bytes_sent * 1000 / delta; /* convert to bytes/s */ 236 throughput_out = total_bytes_sent * 1000000LL / delta; /* convert to bytes/s */
237 throughput_in = total_bytes_recv * 1000 / delta; /* convert to bytes/s */ 237 throughput_in = total_bytes_recv * 1000000LL / delta; /* convert to bytes/s */
238 238
239 max_quota_in = GNUNET_MIN (current_quota_p1_in, current_quota_p2_in); 239 max_quota_in = GNUNET_MIN (current_quota_p1_in, current_quota_p2_in);
240 max_quota_out = GNUNET_MIN (current_quota_p1_out, current_quota_p2_out); 240 max_quota_out = GNUNET_MIN (current_quota_p1_out, current_quota_p2_out);