aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-unindex.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-09-16 11:27:08 +0000
committerChristian Grothoff <christian@grothoff.org>2012-09-16 11:27:08 +0000
commitf736b24935d66733e9a53798fbc87dbc8aff9fca (patch)
treeb7f865216ca4b40a4a6e4535dfa6677700a27efc /src/fs/gnunet-unindex.c
parentc5784d2c94adcf1fe80e88c9ab1c152ce2fcbe95 (diff)
downloadgnunet-f736b24935d66733e9a53798fbc87dbc8aff9fca.tar.gz
gnunet-f736b24935d66733e9a53798fbc87dbc8aff9fca.zip
-fixing #2546
Diffstat (limited to 'src/fs/gnunet-unindex.c')
-rw-r--r--src/fs/gnunet-unindex.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fs/gnunet-unindex.c b/src/fs/gnunet-unindex.c
index f4e352737..be16e9100 100644
--- a/src/fs/gnunet-unindex.c
+++ b/src/fs/gnunet-unindex.c
@@ -76,7 +76,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
76static void * 76static void *
77progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) 77progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info)
78{ 78{
79 char *s; 79 const char *s;
80 80
81 switch (info->status) 81 switch (info->status)
82 { 82 {
@@ -85,11 +85,10 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info)
85 case GNUNET_FS_STATUS_UNINDEX_PROGRESS: 85 case GNUNET_FS_STATUS_UNINDEX_PROGRESS:
86 if (verbose) 86 if (verbose)
87 { 87 {
88 s = GNUNET_STRINGS_relative_time_to_string (info->value.unindex.eta); 88 s = GNUNET_STRINGS_relative_time_to_string (info->value.unindex.eta, GNUNET_YES);
89 FPRINTF (stdout, _("Unindexing at %llu/%llu (%s remaining)\n"), 89 FPRINTF (stdout, _("Unindexing at %llu/%llu (%s remaining)\n"),
90 (unsigned long long) info->value.unindex.completed, 90 (unsigned long long) info->value.unindex.completed,
91 (unsigned long long) info->value.unindex.size, s); 91 (unsigned long long) info->value.unindex.size, s);
92 GNUNET_free (s);
93 } 92 }
94 break; 93 break;
95 case GNUNET_FS_STATUS_UNINDEX_ERROR: 94 case GNUNET_FS_STATUS_UNINDEX_ERROR: