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.c | |
parent | 4d14bcd5d233c1aeef03b34ec9d4b875a5d7bd2b (diff) | |
download | gnunet-92ea81543438aebee77ceec02800da3e4da6a421.tar.gz gnunet-92ea81543438aebee77ceec02800da3e4da6a421.zip |
Refactoring gnunet time
Diffstat (limited to 'src/fs/test_fs_publish.c')
-rw-r--r-- | src/fs/test_fs_publish.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fs/test_fs_publish.c b/src/fs/test_fs_publish.c index 45d1c822a..f5b835259 100644 --- a/src/fs/test_fs_publish.c +++ b/src/fs/test_fs_publish.c | |||
@@ -100,7 +100,7 @@ progress_cb (void *cls, | |||
100 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: | 100 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: |
101 | ret = event->value.publish.cctx; | 101 | ret = event->value.publish.cctx; |
102 | printf ("Publish complete, %llu kbps.\n", | 102 | printf ("Publish complete, %llu kbps.\n", |
103 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).value) / 1024)); | 103 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).rel_value) / 1024)); |
104 | if (0 == strcmp ("publish-context-dir", | 104 | if (0 == strcmp ("publish-context-dir", |
105 | event->value.publish.cctx)) | 105 | event->value.publish.cctx)) |
106 | GNUNET_SCHEDULER_add_continuation (sched, | 106 | GNUNET_SCHEDULER_add_continuation (sched, |
@@ -113,10 +113,10 @@ progress_cb (void *cls, | |||
113 | GNUNET_assert (publish == event->value.publish.pc); | 113 | GNUNET_assert (publish == event->value.publish.pc); |
114 | #if VERBOSE | 114 | #if VERBOSE |
115 | printf ("Publish is progressing (%llu/%llu at level %u off %llu)...\n", | 115 | printf ("Publish is progressing (%llu/%llu at level %u off %llu)...\n", |
116 | (unsigned long long) event->value.publish.completed, | 116 | (unsigned long long) event->abs_value.publish.completed, |
117 | (unsigned long long) event->value.publish.size, | 117 | (unsigned long long) event->abs_value.publish.size, |
118 | event->value.publish.specifics.progress.depth, | 118 | event->abs_value.publish.specifics.progress.depth, |
119 | (unsigned long long) event->value.publish.specifics.progress.offset); | 119 | (unsigned long long) event->abs_value.publish.specifics.progress.offset); |
120 | #endif | 120 | #endif |
121 | break; | 121 | break; |
122 | case GNUNET_FS_STATUS_PUBLISH_ERROR: | 122 | case GNUNET_FS_STATUS_PUBLISH_ERROR: |