aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_unindex_persistence.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/test_fs_unindex_persistence.c')
-rw-r--r--src/fs/test_fs_unindex_persistence.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/test_fs_unindex_persistence.c b/src/fs/test_fs_unindex_persistence.c
index b11748e2a..ef143ecef 100644
--- a/src/fs/test_fs_unindex_persistence.c
+++ b/src/fs/test_fs_unindex_persistence.c
@@ -134,20 +134,20 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
134 break; 134 break;
135 case GNUNET_FS_STATUS_PUBLISH_COMPLETED: 135 case GNUNET_FS_STATUS_PUBLISH_COMPLETED:
136 printf ("Publishing complete, %llu kbps.\n", 136 printf ("Publishing complete, %llu kbps.\n",
137 (unsigned long long) (FILESIZE * 1000 / 137 (unsigned long long) (FILESIZE * 1000000LL /
138 (1 + 138 (1 +
139 GNUNET_TIME_absolute_get_duration 139 GNUNET_TIME_absolute_get_duration
140 (start).rel_value) / 1024)); 140 (start).rel_value_us) / 1024));
141 start = GNUNET_TIME_absolute_get (); 141 start = GNUNET_TIME_absolute_get ();
142 unindex = GNUNET_FS_unindex_start (fs, fn, "unindex"); 142 unindex = GNUNET_FS_unindex_start (fs, fn, "unindex");
143 GNUNET_assert (unindex != NULL); 143 GNUNET_assert (unindex != NULL);
144 break; 144 break;
145 case GNUNET_FS_STATUS_UNINDEX_COMPLETED: 145 case GNUNET_FS_STATUS_UNINDEX_COMPLETED:
146 printf ("Unindex complete, %llu kbps.\n", 146 printf ("Unindex complete, %llu kbps.\n",
147 (unsigned long long) (FILESIZE * 1000 / 147 (unsigned long long) (FILESIZE * 1000000LL /
148 (1 + 148 (1 +
149 GNUNET_TIME_absolute_get_duration 149 GNUNET_TIME_absolute_get_duration
150 (start).rel_value) / 1024)); 150 (start).rel_value_us) / 1024));
151 GNUNET_SCHEDULER_add_continuation (&abort_unindex_task, NULL, 151 GNUNET_SCHEDULER_add_continuation (&abort_unindex_task, NULL,
152 GNUNET_SCHEDULER_REASON_PREREQ_DONE); 152 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
153 break; 153 break;