diff options
Diffstat (limited to 'src/fs/test_fs_unindex.c')
-rw-r--r-- | src/fs/test_fs_unindex.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fs/test_fs_unindex.c b/src/fs/test_fs_unindex.c index 177b687ca..99913fbcf 100644 --- a/src/fs/test_fs_unindex.c +++ b/src/fs/test_fs_unindex.c | |||
@@ -100,16 +100,16 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
100 | (unsigned long long) event->value.publish.completed, | 100 | (unsigned long long) event->value.publish.completed, |
101 | (unsigned long long) event->value.publish.size, | 101 | (unsigned long long) event->value.publish.size, |
102 | event->value.publish.specifics.progress.depth, | 102 | event->value.publish.specifics.progress.depth, |
103 | (unsigned long long) event->value.publish.specifics.progress. | 103 | (unsigned long long) event->value.publish.specifics. |
104 | offset); | 104 | progress.offset); |
105 | #endif | 105 | #endif |
106 | break; | 106 | break; |
107 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: | 107 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: |
108 | printf ("Publishing complete, %llu kbps.\n", | 108 | printf ("Publishing complete, %llu kbps.\n", |
109 | (unsigned long long) (FILESIZE * 1000 / | 109 | (unsigned long long) (FILESIZE * 1000 / |
110 | (1 + | 110 | (1 + |
111 | GNUNET_TIME_absolute_get_duration (start). | 111 | GNUNET_TIME_absolute_get_duration |
112 | rel_value) / 1024)); | 112 | (start).rel_value) / 1024)); |
113 | start = GNUNET_TIME_absolute_get (); | 113 | start = GNUNET_TIME_absolute_get (); |
114 | unindex = GNUNET_FS_unindex_start (fs, fn, "unindex"); | 114 | unindex = GNUNET_FS_unindex_start (fs, fn, "unindex"); |
115 | GNUNET_assert (unindex != NULL); | 115 | GNUNET_assert (unindex != NULL); |
@@ -118,8 +118,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
118 | printf ("Unindex complete, %llu kbps.\n", | 118 | printf ("Unindex complete, %llu kbps.\n", |
119 | (unsigned long long) (FILESIZE * 1000 / | 119 | (unsigned long long) (FILESIZE * 1000 / |
120 | (1 + | 120 | (1 + |
121 | GNUNET_TIME_absolute_get_duration (start). | 121 | GNUNET_TIME_absolute_get_duration |
122 | rel_value) / 1024)); | 122 | (start).rel_value) / 1024)); |
123 | GNUNET_SCHEDULER_add_continuation (&abort_unindex_task, NULL, | 123 | GNUNET_SCHEDULER_add_continuation (&abort_unindex_task, NULL, |
124 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | 124 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); |
125 | break; | 125 | break; |
@@ -130,8 +130,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
130 | (unsigned long long) event->value.unindex.completed, | 130 | (unsigned long long) event->value.unindex.completed, |
131 | (unsigned long long) event->value.unindex.size, | 131 | (unsigned long long) event->value.unindex.size, |
132 | event->value.unindex.specifics.progress.depth, | 132 | event->value.unindex.specifics.progress.depth, |
133 | (unsigned long long) event->value.unindex.specifics.progress. | 133 | (unsigned long long) event->value.unindex.specifics. |
134 | offset); | 134 | progress.offset); |
135 | #endif | 135 | #endif |
136 | break; | 136 | break; |
137 | case GNUNET_FS_STATUS_PUBLISH_ERROR: | 137 | case GNUNET_FS_STATUS_PUBLISH_ERROR: |