diff options
Diffstat (limited to 'src/fs/gnunet-download.c')
-rw-r--r-- | src/fs/gnunet-download.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/gnunet-download.c b/src/fs/gnunet-download.c index 04edc66c8..30081f0b4 100644 --- a/src/fs/gnunet-download.c +++ b/src/fs/gnunet-download.c | |||
@@ -142,8 +142,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) | |||
142 | { | 142 | { |
143 | s = GNUNET_strdup (GNUNET_STRINGS_relative_time_to_string (info->value.download.eta, | 143 | s = GNUNET_strdup (GNUNET_STRINGS_relative_time_to_string (info->value.download.eta, |
144 | GNUNET_YES)); | 144 | GNUNET_YES)); |
145 | if (info->value.download.specifics.progress.block_download_duration.rel_value | 145 | if (info->value.download.specifics.progress.block_download_duration.rel_value_us |
146 | == GNUNET_TIME_UNIT_FOREVER_REL.rel_value) | 146 | == GNUNET_TIME_UNIT_FOREVER_REL.rel_value_us) |
147 | s2 = _("<unknown time>"); | 147 | s2 = _("<unknown time>"); |
148 | else | 148 | else |
149 | s2 = GNUNET_STRINGS_relative_time_to_string ( | 149 | s2 = GNUNET_STRINGS_relative_time_to_string ( |
@@ -152,7 +152,7 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) | |||
152 | t = GNUNET_STRINGS_byte_size_fancy (info->value.download.completed * | 152 | t = GNUNET_STRINGS_byte_size_fancy (info->value.download.completed * |
153 | 1000LL / | 153 | 1000LL / |
154 | (info->value.download. | 154 | (info->value.download. |
155 | duration.rel_value + 1)); | 155 | duration.rel_value_us + 1)); |
156 | FPRINTF (stdout, | 156 | FPRINTF (stdout, |
157 | _("Downloading `%s' at %llu/%llu (%s remaining, %s/s). Block took %s to download\n"), | 157 | _("Downloading `%s' at %llu/%llu (%s remaining, %s/s). Block took %s to download\n"), |
158 | info->value.download.filename, | 158 | info->value.download.filename, |
@@ -183,7 +183,7 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) | |||
183 | case GNUNET_FS_STATUS_DOWNLOAD_COMPLETED: | 183 | case GNUNET_FS_STATUS_DOWNLOAD_COMPLETED: |
184 | s = GNUNET_STRINGS_byte_size_fancy (info->value.download.completed * 1000 / | 184 | s = GNUNET_STRINGS_byte_size_fancy (info->value.download.completed * 1000 / |
185 | (info->value.download. | 185 | (info->value.download. |
186 | duration.rel_value + 1)); | 186 | duration.rel_value_us + 1)); |
187 | #if !WINDOWS | 187 | #if !WINDOWS |
188 | if (0 != isatty (1)) | 188 | if (0 != isatty (1)) |
189 | fprintf (stdout, "\n"); | 189 | fprintf (stdout, "\n"); |