diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-03-11 13:36:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-03-11 13:36:21 +0000 |
commit | 547abb417ffdb39671758096ff0a843fa7f796f3 (patch) | |
tree | 8dc174d2bff5a62b38be2f6796bccdae400b1f03 /src/fs/gnunet-download.c | |
parent | 0e80868ad49024ee1adf0c7162e2dc6e52a70f11 (diff) | |
download | gnunet-547abb417ffdb39671758096ff0a843fa7f796f3.tar.gz gnunet-547abb417ffdb39671758096ff0a843fa7f796f3.zip |
fix progress reporting
Diffstat (limited to 'src/fs/gnunet-download.c')
-rw-r--r-- | src/fs/gnunet-download.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/gnunet-download.c b/src/fs/gnunet-download.c index c865a3361..5279ce459 100644 --- a/src/fs/gnunet-download.c +++ b/src/fs/gnunet-download.c | |||
@@ -100,9 +100,9 @@ progress_cb (void *cls, | |||
100 | break; | 100 | break; |
101 | case GNUNET_FS_STATUS_DOWNLOAD_PROGRESS: | 101 | case GNUNET_FS_STATUS_DOWNLOAD_PROGRESS: |
102 | if (verbose) | 102 | if (verbose) |
103 | { | 103 | { |
104 | s = GNUNET_STRINGS_relative_time_to_string(info->value.download.eta); | 104 | s = GNUNET_STRINGS_relative_time_to_string(info->value.download.eta); |
105 | t = GNUNET_STRINGS_byte_size_fancy(info->value.download.completed * 1000 / (info->value.download.duration.value + 1)); | 105 | t = GNUNET_STRINGS_byte_size_fancy(info->value.download.completed * 1000LL / (info->value.download.duration.value + 1)); |
106 | fprintf (stdout, | 106 | fprintf (stdout, |
107 | _("Downloading `%s' at %llu/%llu (%s remaining, %s/s)\n"), | 107 | _("Downloading `%s' at %llu/%llu (%s remaining, %s/s)\n"), |
108 | info->value.download.filename, | 108 | info->value.download.filename, |