aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_download_persistence.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/test_fs_download_persistence.c')
-rw-r--r--src/fs/test_fs_download_persistence.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/fs/test_fs_download_persistence.c b/src/fs/test_fs_download_persistence.c
index 5b2a53f80..c7a0a8b7c 100644
--- a/src/fs/test_fs_download_persistence.c
+++ b/src/fs/test_fs_download_persistence.c
@@ -123,8 +123,8 @@ abort_download_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
123} 123}
124 124
125 125
126static void *progress_cb (void *cls, 126static void *
127 const struct GNUNET_FS_ProgressInfo *event); 127progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event);
128 128
129 129
130static void 130static void
@@ -171,16 +171,16 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
171 (unsigned long long) event->value.publish.completed, 171 (unsigned long long) event->value.publish.completed,
172 (unsigned long long) event->value.publish.size, 172 (unsigned long long) event->value.publish.size,
173 event->value.publish.specifics.progress.depth, 173 event->value.publish.specifics.progress.depth,
174 (unsigned long long) event->value.publish.specifics.progress. 174 (unsigned long long) event->value.publish.specifics.
175 offset); 175 progress.offset);
176#endif 176#endif
177 break; 177 break;
178 case GNUNET_FS_STATUS_PUBLISH_COMPLETED: 178 case GNUNET_FS_STATUS_PUBLISH_COMPLETED:
179 printf ("Publishing complete, %llu kbps.\n", 179 printf ("Publishing complete, %llu kbps.\n",
180 (unsigned long long) (FILESIZE * 1000LL / 180 (unsigned long long) (FILESIZE * 1000LL /
181 (1 + 181 (1 +
182 GNUNET_TIME_absolute_get_duration (start). 182 GNUNET_TIME_absolute_get_duration
183 rel_value) / 1024LL)); 183 (start).rel_value) / 1024LL));
184 fn = GNUNET_DISK_mktemp ("gnunet-download-test-dst"); 184 fn = GNUNET_DISK_mktemp ("gnunet-download-test-dst");
185 start = GNUNET_TIME_absolute_get (); 185 start = GNUNET_TIME_absolute_get ();
186 GNUNET_assert (download == NULL); 186 GNUNET_assert (download == NULL);
@@ -194,8 +194,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
194 printf ("Download complete, %llu kbps.\n", 194 printf ("Download complete, %llu kbps.\n",
195 (unsigned long long) (FILESIZE * 1000LL / 195 (unsigned long long) (FILESIZE * 1000LL /
196 (1 + 196 (1 +
197 GNUNET_TIME_absolute_get_duration (start). 197 GNUNET_TIME_absolute_get_duration
198 rel_value) / 1024LL)); 198 (start).rel_value) / 1024LL));
199 GNUNET_SCHEDULER_add_now (&abort_download_task, NULL); 199 GNUNET_SCHEDULER_add_now (&abort_download_task, NULL);
200 break; 200 break;
201 case GNUNET_FS_STATUS_DOWNLOAD_PROGRESS: 201 case GNUNET_FS_STATUS_DOWNLOAD_PROGRESS:
@@ -206,8 +206,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
206 (unsigned long long) event->value.download.completed, 206 (unsigned long long) event->value.download.completed,
207 (unsigned long long) event->value.download.size, 207 (unsigned long long) event->value.download.size,
208 event->value.download.specifics.progress.depth, 208 event->value.download.specifics.progress.depth,
209 (unsigned long long) event->value.download.specifics.progress. 209 (unsigned long long) event->value.download.specifics.
210 offset); 210 progress.offset);
211#endif 211#endif
212 break; 212 break;
213 case GNUNET_FS_STATUS_PUBLISH_ERROR: 213 case GNUNET_FS_STATUS_PUBLISH_ERROR: