diff options
Diffstat (limited to 'src/fs/test_fs_unindex.c')
-rw-r--r-- | src/fs/test_fs_unindex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/test_fs_unindex.c b/src/fs/test_fs_unindex.c index 6b89dcad8..033195f0b 100644 --- a/src/fs/test_fs_unindex.c +++ b/src/fs/test_fs_unindex.c | |||
@@ -92,20 +92,20 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event) | |||
92 | break; | 92 | break; |
93 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: | 93 | case GNUNET_FS_STATUS_PUBLISH_COMPLETED: |
94 | printf ("Publishing complete, %llu kbps.\n", | 94 | printf ("Publishing complete, %llu kbps.\n", |
95 | (unsigned long long) (FILESIZE * 1000 / | 95 | (unsigned long long) (FILESIZE * 1000000LL / |
96 | (1 + | 96 | (1 + |
97 | GNUNET_TIME_absolute_get_duration | 97 | GNUNET_TIME_absolute_get_duration |
98 | (start).rel_value) / 1024)); | 98 | (start).rel_value_us) / 1024)); |
99 | start = GNUNET_TIME_absolute_get (); | 99 | start = GNUNET_TIME_absolute_get (); |
100 | unindex = GNUNET_FS_unindex_start (fs, fn, "unindex"); | 100 | unindex = GNUNET_FS_unindex_start (fs, fn, "unindex"); |
101 | GNUNET_assert (unindex != NULL); | 101 | GNUNET_assert (unindex != NULL); |
102 | break; | 102 | break; |
103 | case GNUNET_FS_STATUS_UNINDEX_COMPLETED: | 103 | case GNUNET_FS_STATUS_UNINDEX_COMPLETED: |
104 | printf ("Unindex complete, %llu kbps.\n", | 104 | printf ("Unindex complete, %llu kbps.\n", |
105 | (unsigned long long) (FILESIZE * 1000 / | 105 | (unsigned long long) (FILESIZE * 1000000LL / |
106 | (1 + | 106 | (1 + |
107 | GNUNET_TIME_absolute_get_duration | 107 | GNUNET_TIME_absolute_get_duration |
108 | (start).rel_value) / 1024)); | 108 | (start).rel_value_us) / 1024)); |
109 | GNUNET_SCHEDULER_add_continuation (&abort_unindex_task, NULL, | 109 | GNUNET_SCHEDULER_add_continuation (&abort_unindex_task, NULL, |
110 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | 110 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); |
111 | break; | 111 | break; |