aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_gnunet_service_fs_p2p.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/test_gnunet_service_fs_p2p.c')
-rw-r--r--src/fs/test_gnunet_service_fs_p2p.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/test_gnunet_service_fs_p2p.c b/src/fs/test_gnunet_service_fs_p2p.c
index e37a322b8..63f5627c2 100644
--- a/src/fs/test_gnunet_service_fs_p2p.c
+++ b/src/fs/test_gnunet_service_fs_p2p.c
@@ -64,11 +64,11 @@ do_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
64 if (0 == (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT)) 64 if (0 == (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT))
65 { 65 {
66 del = GNUNET_TIME_absolute_get_duration (start_time); 66 del = GNUNET_TIME_absolute_get_duration (start_time);
67 if (del.rel_value == 0) 67 if (del.rel_value_us == 0)
68 del.rel_value = 1; 68 del.rel_value_us = 1;
69 fancy = 69 fancy =
70 GNUNET_STRINGS_byte_size_fancy (((unsigned long long) FILESIZE) * 70 GNUNET_STRINGS_byte_size_fancy (((unsigned long long) FILESIZE) *
71 1000LL / del.rel_value); 71 1000000LL / del.rel_value_us);
72 FPRINTF (stdout, "Download speed was %s/s\n", fancy); 72 FPRINTF (stdout, "Download speed was %s/s\n", fancy);
73 GNUNET_free (fancy); 73 GNUNET_free (fancy);
74 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Finished download, shutting down\n", 74 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Finished download, shutting down\n",