aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-unindex.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-10-20 19:39:44 +0000
committerChristian Grothoff <christian@grothoff.org>2009-10-20 19:39:44 +0000
commitc4bd9004dbd3849a5ccb841c526b9b192e2270e5 (patch)
treeb7f3c9d2082e373542f631f376d391a50df7921c /src/fs/gnunet-unindex.c
parent5228336613947f354ff56d2d323d517aa8a94ca9 (diff)
downloadgnunet-c4bd9004dbd3849a5ccb841c526b9b192e2270e5.tar.gz
gnunet-c4bd9004dbd3849a5ccb841c526b9b192e2270e5.zip
minor bugfixes
Diffstat (limited to 'src/fs/gnunet-unindex.c')
-rw-r--r--src/fs/gnunet-unindex.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/fs/gnunet-unindex.c b/src/fs/gnunet-unindex.c
index cce08bb20..c6b75c9c3 100644
--- a/src/fs/gnunet-unindex.c
+++ b/src/fs/gnunet-unindex.c
@@ -56,17 +56,23 @@ static void *
56progress_cb (void *cls, 56progress_cb (void *cls,
57 const struct GNUNET_FS_ProgressInfo *info) 57 const struct GNUNET_FS_ProgressInfo *info)
58{ 58{
59 char *s;
60
59 switch (info->status) 61 switch (info->status)
60 { 62 {
61 case GNUNET_FS_STATUS_UNINDEX_START: 63 case GNUNET_FS_STATUS_UNINDEX_START:
62 break; 64 break;
63 case GNUNET_FS_STATUS_UNINDEX_PROGRESS: 65 case GNUNET_FS_STATUS_UNINDEX_PROGRESS:
64 if (verbose) 66 if (verbose)
65 fprintf (stdout, 67 {
66 _("Unindexing at %llu/%llu (%s remaining)\n"), 68 s = GNUNET_STRINGS_relative_time_to_string(info->value.unindex.eta);
67 (unsigned long long) info->value.unindex.completed, 69 fprintf (stdout,
68 (unsigned long long) info->value.unindex.size, 70 _("Unindexing at %llu/%llu (%s remaining)\n"),
69 GNUNET_STRINGS_relative_time_to_string(info->value.unindex.eta)); 71 (unsigned long long) info->value.unindex.completed,
72 (unsigned long long) info->value.unindex.size,
73 s);
74 GNUNET_free (s);
75 }
70 break; 76 break;
71 case GNUNET_FS_STATUS_UNINDEX_ERROR: 77 case GNUNET_FS_STATUS_UNINDEX_ERROR:
72 fprintf (stderr, 78 fprintf (stderr,