diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-11 21:21:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-11 21:21:56 +0000 |
commit | 3d7fefedc9ba60bd8e8448efe8b628446d958536 (patch) | |
tree | 61ce41a52cd6e7232cead77818ef265993b2427e /src/fs/perf_gnunet_service_fs_p2p_respect.c | |
parent | 4a0398474db197abed243a123fb971fbeeffab4b (diff) | |
download | gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip |
changing time measurement from milliseconds to microseconds
Diffstat (limited to 'src/fs/perf_gnunet_service_fs_p2p_respect.c')
-rw-r--r-- | src/fs/perf_gnunet_service_fs_p2p_respect.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/perf_gnunet_service_fs_p2p_respect.c b/src/fs/perf_gnunet_service_fs_p2p_respect.c index 35425a253..c5846c8c3 100644 --- a/src/fs/perf_gnunet_service_fs_p2p_respect.c +++ b/src/fs/perf_gnunet_service_fs_p2p_respect.c | |||
@@ -297,11 +297,11 @@ do_report (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
297 | return; | 297 | return; |
298 | } | 298 | } |
299 | del = GNUNET_TIME_absolute_get_duration (start_time); | 299 | del = GNUNET_TIME_absolute_get_duration (start_time); |
300 | if (del.rel_value == 0) | 300 | if (del.rel_value_us == 0) |
301 | del.rel_value = 1; | 301 | del.rel_value_us = 1; |
302 | fancy = | 302 | fancy = |
303 | GNUNET_STRINGS_byte_size_fancy (((unsigned long long) FILESIZE) * | 303 | GNUNET_STRINGS_byte_size_fancy (((unsigned long long) FILESIZE) * |
304 | 1000LL / del.rel_value); | 304 | 1000000LL / del.rel_value_us); |
305 | FPRINTF (stderr, "Download speed of type `%s' was %s/s\n", type, fancy); | 305 | FPRINTF (stderr, "Download speed of type `%s' was %s/s\n", type, fancy); |
306 | GNUNET_free (fancy); | 306 | GNUNET_free (fancy); |
307 | if (NUM_DAEMONS != ++download_counter) | 307 | if (NUM_DAEMONS != ++download_counter) |