diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-10-27 09:47:07 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-10-27 09:47:07 +0000 |
commit | 92ea81543438aebee77ceec02800da3e4da6a421 (patch) | |
tree | 5f5075ae7e9cc68881fd94f7f98795b755fbd374 /src/fs/test_fs_unindex_persistence.c | |
parent | 4d14bcd5d233c1aeef03b34ec9d4b875a5d7bd2b (diff) | |
download | gnunet-92ea81543438aebee77ceec02800da3e4da6a421.tar.gz gnunet-92ea81543438aebee77ceec02800da3e4da6a421.zip |
Refactoring gnunet time
Diffstat (limited to 'src/fs/test_fs_unindex_persistence.c')
-rw-r--r-- | src/fs/test_fs_unindex_persistence.c | 20 |
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 3483b7e09..cbe08913f 100644 --- a/src/fs/test_fs_unindex_persistence.c +++ b/src/fs/test_fs_unindex_persistence.c | |||
@@ -151,15 +151,15 @@ progress_cb (void *cls, | |||
151 | case GNUNET_FS_STATUS_PUBLISH_PROGRESS: | 151 | case GNUNET_FS_STATUS_PUBLISH_PROGRESS: |
152 | #if VERBOSE | 152 | #if VERBOSE |
153 | printf ("Publish is progressing (%llu/%llu at level %u off %llu)...\n", | 153 | printf ("Publish is progressing (%llu/%llu at level %u off %llu)...\n", |
154 | (unsigned long long) event->value.publish.completed, | 154 | (unsigned long long) event->abs_value.publish.completed, |
155 | (unsigned long long) event->value.publish.size, | 155 | (unsigned long long) event->abs_value.publish.size, |
156 | event->value.publish.specifics.progress.depth, | 156 | event->abs_value.publish.specifics.progress.depth, |
157 | (unsigned long long) event->value.publish.specifics.progress.offset); | 157 | (unsigned long long) event->abs_value.publish.specifics.progress.offset); |
158 | #endif | 158 | #endif |
159 | break; | 159 | break; |
160 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: | 160 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: |
161 | printf ("Publishing complete, %llu kbps.\n", | 161 | printf ("Publishing complete, %llu kbps.\n", |
162 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).value) / 1024)); | 162 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).rel_value) / 1024)); |
163 | start = GNUNET_TIME_absolute_get (); | 163 | start = GNUNET_TIME_absolute_get (); |
164 | unindex = GNUNET_FS_unindex_start (fs, | 164 | unindex = GNUNET_FS_unindex_start (fs, |
165 | fn, | 165 | fn, |
@@ -168,7 +168,7 @@ progress_cb (void *cls, | |||
168 | break; | 168 | break; |
169 | case GNUNET_FS_STATUS_UNINDEX_COMPLETED: | 169 | case GNUNET_FS_STATUS_UNINDEX_COMPLETED: |
170 | printf ("Unindex complete, %llu kbps.\n", | 170 | printf ("Unindex complete, %llu kbps.\n", |
171 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).value) / 1024)); | 171 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).rel_value) / 1024)); |
172 | GNUNET_SCHEDULER_add_continuation (sched, | 172 | GNUNET_SCHEDULER_add_continuation (sched, |
173 | &abort_unindex_task, | 173 | &abort_unindex_task, |
174 | NULL, | 174 | NULL, |
@@ -179,10 +179,10 @@ progress_cb (void *cls, | |||
179 | GNUNET_assert (unindex == event->value.unindex.uc); | 179 | GNUNET_assert (unindex == event->value.unindex.uc); |
180 | #if VERBOSE | 180 | #if VERBOSE |
181 | printf ("Unindex is progressing (%llu/%llu at level %u off %llu)...\n", | 181 | printf ("Unindex is progressing (%llu/%llu at level %u off %llu)...\n", |
182 | (unsigned long long) event->value.unindex.completed, | 182 | (unsigned long long) event->abs_value.unindex.completed, |
183 | (unsigned long long) event->value.unindex.size, | 183 | (unsigned long long) event->abs_value.unindex.size, |
184 | event->value.unindex.specifics.progress.depth, | 184 | event->abs_value.unindex.specifics.progress.depth, |
185 | (unsigned long long) event->value.unindex.specifics.progress.offset); | 185 | (unsigned long long) event->abs_value.unindex.specifics.progress.offset); |
186 | #endif | 186 | #endif |
187 | break; | 187 | break; |
188 | case GNUNET_FS_STATUS_PUBLISH_SUSPEND: | 188 | case GNUNET_FS_STATUS_PUBLISH_SUSPEND: |