diff options
Diffstat (limited to 'src/fs/test_fs_download_persistence.c')
-rw-r--r-- | src/fs/test_fs_download_persistence.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/test_fs_download_persistence.c b/src/fs/test_fs_download_persistence.c index d5883874d..b380fd4af 100644 --- a/src/fs/test_fs_download_persistence.c +++ b/src/fs/test_fs_download_persistence.c | |||
@@ -164,10 +164,10 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
164 | break; | 164 | break; |
165 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: | 165 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: |
166 | printf ("Publishing complete, %llu kbps.\n", | 166 | printf ("Publishing complete, %llu kbps.\n", |
167 | (unsigned long long) (FILESIZE * 1000LL / | 167 | (unsigned long long) (FILESIZE * 1000000LL / |
168 | (1 + | 168 | (1 + |
169 | GNUNET_TIME_absolute_get_duration | 169 | GNUNET_TIME_absolute_get_duration |
170 | (start).rel_value) / 1024LL)); | 170 | (start).rel_value_us) / 1024LL)); |
171 | fn = GNUNET_DISK_mktemp ("gnunet-download-test-dst"); | 171 | fn = GNUNET_DISK_mktemp ("gnunet-download-test-dst"); |
172 | start = GNUNET_TIME_absolute_get (); | 172 | start = GNUNET_TIME_absolute_get (); |
173 | GNUNET_assert (download == NULL); | 173 | GNUNET_assert (download == NULL); |
@@ -179,10 +179,10 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
179 | case GNUNET_FS_STATUS_DOWNLOAD_COMPLETED: | 179 | case GNUNET_FS_STATUS_DOWNLOAD_COMPLETED: |
180 | consider_restart (event->status); | 180 | consider_restart (event->status); |
181 | printf ("Download complete, %llu kbps.\n", | 181 | printf ("Download complete, %llu kbps.\n", |
182 | (unsigned long long) (FILESIZE * 1000LL / | 182 | (unsigned long long) (FILESIZE * 1000000LL / |
183 | (1 + | 183 | (1 + |
184 | GNUNET_TIME_absolute_get_duration | 184 | GNUNET_TIME_absolute_get_duration |
185 | (start).rel_value) / 1024LL)); | 185 | (start).rel_value_us) / 1024LL)); |
186 | GNUNET_SCHEDULER_add_now (&abort_download_task, NULL); | 186 | GNUNET_SCHEDULER_add_now (&abort_download_task, NULL); |
187 | break; | 187 | break; |
188 | case GNUNET_FS_STATUS_DOWNLOAD_PROGRESS: | 188 | case GNUNET_FS_STATUS_DOWNLOAD_PROGRESS: |