aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_list_indexed.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-10-27 09:47:07 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-10-27 09:47:07 +0000
commit92ea81543438aebee77ceec02800da3e4da6a421 (patch)
tree5f5075ae7e9cc68881fd94f7f98795b755fbd374 /src/fs/test_fs_list_indexed.c
parent4d14bcd5d233c1aeef03b34ec9d4b875a5d7bd2b (diff)
downloadgnunet-92ea81543438aebee77ceec02800da3e4da6a421.tar.gz
gnunet-92ea81543438aebee77ceec02800da3e4da6a421.zip
Refactoring gnunet time
Diffstat (limited to 'src/fs/test_fs_list_indexed.c')
-rw-r--r--src/fs/test_fs_list_indexed.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fs/test_fs_list_indexed.c b/src/fs/test_fs_list_indexed.c
index eb5fdf505..dd2b30417 100644
--- a/src/fs/test_fs_list_indexed.c
+++ b/src/fs/test_fs_list_indexed.c
@@ -115,7 +115,7 @@ progress_cb (void *cls,
115 case GNUNET_FS_STATUS_PUBLISH_COMPLETED: 115 case GNUNET_FS_STATUS_PUBLISH_COMPLETED:
116 ret = event->value.publish.cctx; 116 ret = event->value.publish.cctx;
117 printf ("Publish complete, %llu kbps.\n", 117 printf ("Publish complete, %llu kbps.\n",
118 (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).value) / 1024)); 118 (unsigned long long) (FILESIZE * 1000 / (1+GNUNET_TIME_absolute_get_duration (start).rel_value) / 1024));
119 if (0 == strcmp ("list_indexed-context-dir", 119 if (0 == strcmp ("list_indexed-context-dir",
120 event->value.publish.cctx)) 120 event->value.publish.cctx))
121 GNUNET_SCHEDULER_add_continuation (sched, 121 GNUNET_SCHEDULER_add_continuation (sched,
@@ -129,10 +129,10 @@ progress_cb (void *cls,
129 GNUNET_assert (publish == event->value.publish.pc); 129 GNUNET_assert (publish == event->value.publish.pc);
130#if VERBOSE 130#if VERBOSE
131 printf ("Publish is progressing (%llu/%llu at level %u off %llu)...\n", 131 printf ("Publish is progressing (%llu/%llu at level %u off %llu)...\n",
132 (unsigned long long) event->value.publish.completed, 132 (unsigned long long) event->abs_value.publish.completed,
133 (unsigned long long) event->value.publish.size, 133 (unsigned long long) event->abs_value.publish.size,
134 event->value.publish.specifics.progress.depth, 134 event->abs_value.publish.specifics.progress.depth,
135 (unsigned long long) event->value.publish.specifics.progress.offset); 135 (unsigned long long) event->abs_value.publish.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: