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_publish_persistence.c | |
parent | 4d14bcd5d233c1aeef03b34ec9d4b875a5d7bd2b (diff) | |
download | gnunet-92ea81543438aebee77ceec02800da3e4da6a421.tar.gz gnunet-92ea81543438aebee77ceec02800da3e4da6a421.zip |
Refactoring gnunet time
Diffstat (limited to 'src/fs/test_fs_publish_persistence.c')
-rw-r--r-- | src/fs/test_fs_publish_persistence.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fs/test_fs_publish_persistence.c b/src/fs/test_fs_publish_persistence.c index dfcf335c7..b4b9b58ba 100644 --- a/src/fs/test_fs_publish_persistence.c +++ b/src/fs/test_fs_publish_persistence.c | |||
@@ -148,7 +148,7 @@ progress_cb (void *cls, | |||
148 | consider_restart (event->status); | 148 | consider_restart (event->status); |
149 | ret = event->value.publish.cctx; | 149 | ret = event->value.publish.cctx; |
150 | printf ("Publish complete, %llu kbps.\n", | 150 | printf ("Publish complete, %llu kbps.\n", |
151 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).value) / 1024)); | 151 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).rel_value) / 1024)); |
152 | if (0 == strcmp ("publish-context-dir", | 152 | if (0 == strcmp ("publish-context-dir", |
153 | event->value.publish.cctx)) | 153 | event->value.publish.cctx)) |
154 | GNUNET_SCHEDULER_add_continuation (sched, | 154 | GNUNET_SCHEDULER_add_continuation (sched, |
@@ -162,10 +162,10 @@ progress_cb (void *cls, | |||
162 | GNUNET_assert (publish == event->value.publish.pc); | 162 | GNUNET_assert (publish == event->value.publish.pc); |
163 | #if VERBOSE | 163 | #if VERBOSE |
164 | printf ("Publish is progressing (%llu/%llu at level %u off %llu)...\n", | 164 | printf ("Publish is progressing (%llu/%llu at level %u off %llu)...\n", |
165 | (unsigned long long) event->value.publish.completed, | 165 | (unsigned long long) event->abs_value.publish.completed, |
166 | (unsigned long long) event->value.publish.size, | 166 | (unsigned long long) event->abs_value.publish.size, |
167 | event->value.publish.specifics.progress.depth, | 167 | event->abs_value.publish.specifics.progress.depth, |
168 | (unsigned long long) event->value.publish.specifics.progress.offset); | 168 | (unsigned long long) event->abs_value.publish.specifics.progress.offset); |
169 | #endif | 169 | #endif |
170 | break; | 170 | break; |
171 | case GNUNET_FS_STATUS_PUBLISH_SUSPEND: | 171 | case GNUNET_FS_STATUS_PUBLISH_SUSPEND: |