aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_unindex_persistence.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/test_fs_unindex_persistence.c')
-rw-r--r--src/fs/test_fs_unindex_persistence.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/fs/test_fs_unindex_persistence.c b/src/fs/test_fs_unindex_persistence.c
index 4fcd1445f..e81400817 100644
--- a/src/fs/test_fs_unindex_persistence.c
+++ b/src/fs/test_fs_unindex_persistence.c
@@ -94,8 +94,8 @@ abort_unindex_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
94} 94}
95 95
96 96
97static void *progress_cb (void *cls, 97static void *
98 const struct GNUNET_FS_ProgressInfo *event); 98progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event);
99 99
100 100
101static void 101static void
@@ -141,16 +141,16 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
141 (unsigned long long) event->value.publish.completed, 141 (unsigned long long) event->value.publish.completed,
142 (unsigned long long) event->value.publish.size, 142 (unsigned long long) event->value.publish.size,
143 event->value.publish.specifics.progress.depth, 143 event->value.publish.specifics.progress.depth,
144 (unsigned long long) event->value.publish.specifics.progress. 144 (unsigned long long) event->value.publish.specifics.
145 offset); 145 progress.offset);
146#endif 146#endif
147 break; 147 break;
148 case GNUNET_FS_STATUS_PUBLISH_COMPLETED: 148 case GNUNET_FS_STATUS_PUBLISH_COMPLETED:
149 printf ("Publishing complete, %llu kbps.\n", 149 printf ("Publishing complete, %llu kbps.\n",
150 (unsigned long long) (FILESIZE * 1000 / 150 (unsigned long long) (FILESIZE * 1000 /
151 (1 + 151 (1 +
152 GNUNET_TIME_absolute_get_duration (start). 152 GNUNET_TIME_absolute_get_duration
153 rel_value) / 1024)); 153 (start).rel_value) / 1024));
154 start = GNUNET_TIME_absolute_get (); 154 start = GNUNET_TIME_absolute_get ();
155 unindex = GNUNET_FS_unindex_start (fs, fn, "unindex"); 155 unindex = GNUNET_FS_unindex_start (fs, fn, "unindex");
156 GNUNET_assert (unindex != NULL); 156 GNUNET_assert (unindex != NULL);
@@ -159,8 +159,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
159 printf ("Unindex complete, %llu kbps.\n", 159 printf ("Unindex complete, %llu kbps.\n",
160 (unsigned long long) (FILESIZE * 1000 / 160 (unsigned long long) (FILESIZE * 1000 /
161 (1 + 161 (1 +
162 GNUNET_TIME_absolute_get_duration (start). 162 GNUNET_TIME_absolute_get_duration
163 rel_value) / 1024)); 163 (start).rel_value) / 1024));
164 GNUNET_SCHEDULER_add_continuation (&abort_unindex_task, NULL, 164 GNUNET_SCHEDULER_add_continuation (&abort_unindex_task, NULL,
165 GNUNET_SCHEDULER_REASON_PREREQ_DONE); 165 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
166 break; 166 break;
@@ -172,8 +172,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
172 (unsigned long long) event->value.unindex.completed, 172 (unsigned long long) event->value.unindex.completed,
173 (unsigned long long) event->value.unindex.size, 173 (unsigned long long) event->value.unindex.size,
174 event->value.unindex.specifics.progress.depth, 174 event->value.unindex.specifics.progress.depth,
175 (unsigned long long) event->value.unindex.specifics.progress. 175 (unsigned long long) event->value.unindex.specifics.
176 offset); 176 progress.offset);
177#endif 177#endif
178 break; 178 break;
179 case GNUNET_FS_STATUS_PUBLISH_SUSPEND: 179 case GNUNET_FS_STATUS_PUBLISH_SUSPEND: