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.c | |
parent | 4d14bcd5d233c1aeef03b34ec9d4b875a5d7bd2b (diff) | |
download | gnunet-92ea81543438aebee77ceec02800da3e4da6a421.tar.gz gnunet-92ea81543438aebee77ceec02800da3e4da6a421.zip |
Refactoring gnunet time
Diffstat (limited to 'src/fs/test_fs_unindex.c')
-rw-r--r-- | src/fs/test_fs_unindex.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/fs/test_fs_unindex.c b/src/fs/test_fs_unindex.c index 468f86504..6fe47a6c4 100644 --- a/src/fs/test_fs_unindex.c +++ b/src/fs/test_fs_unindex.c | |||
@@ -102,15 +102,15 @@ progress_cb (void *cls, | |||
102 | case GNUNET_FS_STATUS_PUBLISH_PROGRESS: | 102 | case GNUNET_FS_STATUS_PUBLISH_PROGRESS: |
103 | #if VERBOSE | 103 | #if VERBOSE |
104 | printf ("Publish is progressing (%llu/%llu at level %u off %llu)...\n", | 104 | printf ("Publish is progressing (%llu/%llu at level %u off %llu)...\n", |
105 | (unsigned long long) event->value.publish.completed, | 105 | (unsigned long long) event->abs_value.publish.completed, |
106 | (unsigned long long) event->value.publish.size, | 106 | (unsigned long long) event->abs_value.publish.size, |
107 | event->value.publish.specifics.progress.depth, | 107 | event->abs_value.publish.specifics.progress.depth, |
108 | (unsigned long long) event->value.publish.specifics.progress.offset); | 108 | (unsigned long long) event->abs_value.publish.specifics.progress.offset); |
109 | #endif | 109 | #endif |
110 | break; | 110 | break; |
111 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: | 111 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: |
112 | printf ("Publishing complete, %llu kbps.\n", | 112 | printf ("Publishing complete, %llu kbps.\n", |
113 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).value) / 1024)); | 113 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).rel_value) / 1024)); |
114 | start = GNUNET_TIME_absolute_get (); | 114 | start = GNUNET_TIME_absolute_get (); |
115 | unindex = GNUNET_FS_unindex_start (fs, | 115 | unindex = GNUNET_FS_unindex_start (fs, |
116 | fn, | 116 | fn, |
@@ -119,7 +119,7 @@ progress_cb (void *cls, | |||
119 | break; | 119 | break; |
120 | case GNUNET_FS_STATUS_UNINDEX_COMPLETED: | 120 | case GNUNET_FS_STATUS_UNINDEX_COMPLETED: |
121 | printf ("Unindex complete, %llu kbps.\n", | 121 | printf ("Unindex complete, %llu kbps.\n", |
122 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).value) / 1024)); | 122 | (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).rel_value) / 1024)); |
123 | GNUNET_SCHEDULER_add_continuation (sched, | 123 | GNUNET_SCHEDULER_add_continuation (sched, |
124 | &abort_unindex_task, | 124 | &abort_unindex_task, |
125 | NULL, | 125 | NULL, |
@@ -129,10 +129,10 @@ progress_cb (void *cls, | |||
129 | GNUNET_assert (unindex == event->value.unindex.uc); | 129 | GNUNET_assert (unindex == event->value.unindex.uc); |
130 | #if VERBOSE | 130 | #if VERBOSE |
131 | printf ("Unindex is progressing (%llu/%llu at level %u off %llu)...\n", | 131 | printf ("Unindex is progressing (%llu/%llu at level %u off %llu)...\n", |
132 | (unsigned long long) event->value.unindex.completed, | 132 | (unsigned long long) event->abs_value.unindex.completed, |
133 | (unsigned long long) event->value.unindex.size, | 133 | (unsigned long long) event->abs_value.unindex.size, |
134 | event->value.unindex.specifics.progress.depth, | 134 | event->abs_value.unindex.specifics.progress.depth, |
135 | (unsigned long long) event->value.unindex.specifics.progress.offset); | 135 | (unsigned long long) event->abs_value.unindex.specifics.progress.offset); |
136 | #endif | 136 | #endif |
137 | break; | 137 | break; |
138 | case GNUNET_FS_STATUS_PUBLISH_ERROR: | 138 | case GNUNET_FS_STATUS_PUBLISH_ERROR: |