diff options
Diffstat (limited to 'src/fs/test_gnunet_service_fs_migration.c')
-rw-r--r-- | src/fs/test_gnunet_service_fs_migration.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/test_gnunet_service_fs_migration.c b/src/fs/test_gnunet_service_fs_migration.c index 138e35c47..58e6374d5 100644 --- a/src/fs/test_gnunet_service_fs_migration.c +++ b/src/fs/test_gnunet_service_fs_migration.c | |||
@@ -73,11 +73,11 @@ do_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
73 | if (0 == (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT)) | 73 | if (0 == (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT)) |
74 | { | 74 | { |
75 | del = GNUNET_TIME_absolute_get_duration (start_time); | 75 | del = GNUNET_TIME_absolute_get_duration (start_time); |
76 | if (del.rel_value == 0) | 76 | if (del.rel_value_us == 0) |
77 | del.rel_value = 1; | 77 | del.rel_value_us = 1; |
78 | fancy = | 78 | fancy = |
79 | GNUNET_STRINGS_byte_size_fancy (((unsigned long long) FILESIZE) * | 79 | GNUNET_STRINGS_byte_size_fancy (((unsigned long long) FILESIZE) * |
80 | 1000LL / del.rel_value); | 80 | 1000000LL / del.rel_value_us); |
81 | FPRINTF (stdout, "Download speed was %s/s\n", fancy); | 81 | FPRINTF (stdout, "Download speed was %s/s\n", fancy); |
82 | GNUNET_free (fancy); | 82 | GNUNET_free (fancy); |
83 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Finished download, shutting down\n", | 83 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Finished download, shutting down\n", |