[tracker] tracker-status: Add status to -f output
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-status: Add status to -f output
- Date: Mon, 7 Sep 2009 13:36:39 +0000 (UTC)
commit 5cd891e5053ddefefa0f7e17240538d30b51e804
Author: Martyn Russell <martyn lanedo com>
Date: Mon Sep 7 13:54:00 2009 +0100
tracker-status: Add status to -f output
src/tracker-utils/tracker-status.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/src/tracker-utils/tracker-status.c b/src/tracker-utils/tracker-status.c
index 7fb6b98..ea297e9 100644
--- a/src/tracker-utils/tracker-status.c
+++ b/src/tracker-utils/tracker-status.c
@@ -406,13 +406,16 @@ miner_manager_progress_cb (TrackerMinerManager *manager,
const gchar *status,
gdouble progress)
{
- miner_name += strlen (TRACKER_MINER_DBUS_NAME_PREFIX);
- progress *= 100;
+ const gchar *name;
- g_print (" [R] %s: %3.0f%%, %s\n",
+ name = miner_name + strlen (TRACKER_MINER_DBUS_NAME_PREFIX);
+
+ g_print (" [R] %s: %3.0f%%, %s, %s: '%s'\n",
_("Progress"),
- progress,
- miner_name);
+ progress * 100,
+ name,
+ _("Status"),
+ status ? status : _("Unknown"));
}
gint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]