X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ffs%2Ftest_fs_unindex_persistence.c;h=0529aacfa71c2e77ad8a2b94cbb885d9c6c89be6;hb=20e86c5bb520dadff4354ab8a0728b914ed82e3f;hp=4fcd1445f436d20fb97b9f5b174359fc9ef1b2dc;hpb=5746309cb4be2073d550ad7a6885e918631dbc38;p=oweals%2Fgnunet.git diff --git a/src/fs/test_fs_unindex_persistence.c b/src/fs/test_fs_unindex_persistence.c index 4fcd1445f..0529aacfa 100644 --- a/src/fs/test_fs_unindex_persistence.c +++ b/src/fs/test_fs_unindex_persistence.c @@ -28,7 +28,7 @@ #include "gnunet_arm_service.h" #include "gnunet_fs_service.h" -#define VERBOSE GNUNET_NO +#define VERBOSE GNUNET_EXTRA_LOGGING #define START_ARM GNUNET_YES @@ -94,8 +94,8 @@ abort_unindex_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) } -static void *progress_cb (void *cls, - const struct GNUNET_FS_ProgressInfo *event); +static void * +progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event); static void @@ -108,8 +108,8 @@ restart_fs_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) /** - * Consider scheduling the restart-task. - * Only runs the restart task once per event + * Consider scheduling the restart-task. + * Only runs the restart task once per event * category. * * @param ev type of the event to consider @@ -141,16 +141,16 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) (unsigned long long) event->value.publish.completed, (unsigned long long) event->value.publish.size, event->value.publish.specifics.progress.depth, - (unsigned long long) event->value.publish.specifics.progress. - offset); + (unsigned long long) event->value.publish.specifics. + progress.offset); #endif break; case GNUNET_FS_STATUS_PUBLISH_COMPLETED: printf ("Publishing complete, %llu kbps.\n", (unsigned long long) (FILESIZE * 1000 / (1 + - GNUNET_TIME_absolute_get_duration (start). - rel_value) / 1024)); + GNUNET_TIME_absolute_get_duration + (start).rel_value) / 1024)); start = GNUNET_TIME_absolute_get (); unindex = GNUNET_FS_unindex_start (fs, fn, "unindex"); GNUNET_assert (unindex != NULL); @@ -159,8 +159,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) printf ("Unindex complete, %llu kbps.\n", (unsigned long long) (FILESIZE * 1000 / (1 + - GNUNET_TIME_absolute_get_duration (start). - rel_value) / 1024)); + GNUNET_TIME_absolute_get_duration + (start).rel_value) / 1024)); GNUNET_SCHEDULER_add_continuation (&abort_unindex_task, NULL, GNUNET_SCHEDULER_REASON_PREREQ_DONE); break; @@ -172,8 +172,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) (unsigned long long) event->value.unindex.completed, (unsigned long long) event->value.unindex.size, event->value.unindex.specifics.progress.depth, - (unsigned long long) event->value.unindex.specifics.progress. - offset); + (unsigned long long) event->value.unindex.specifics. + progress.offset); #endif break; case GNUNET_FS_STATUS_PUBLISH_SUSPEND: