aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_quota_compliance.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-11 21:21:56 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-11 21:21:56 +0000
commit3d7fefedc9ba60bd8e8448efe8b628446d958536 (patch)
tree61ce41a52cd6e7232cead77818ef265993b2427e /src/core/test_core_quota_compliance.c
parent4a0398474db197abed243a123fb971fbeeffab4b (diff)
downloadgnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz
gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip
changing time measurement from milliseconds to microseconds
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);