[tracker/harmattan-pre-signal-updates: 1371/1380] tracker-extract: Show stats message for 0 items listed too



commit 77981b4f45c5e7b14af7707f34cef175ec9d2829
Author: Martyn Russell <martyn lanedo com>
Date:   Mon Sep 20 17:06:30 2010 +0100

    tracker-extract: Show stats message for 0 items listed too

 src/tracker-extract/tracker-extract.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract.c b/src/tracker-extract/tracker-extract.c
index 83198da..6977f71 100644
--- a/src/tracker-extract/tracker-extract.c
+++ b/src/tracker-extract/tracker-extract.c
@@ -137,7 +137,6 @@ report_statistics (GObject *object)
 
 	priv = TRACKER_EXTRACT_GET_PRIVATE (object);
 
-
 #ifdef HAVE_LIBSTREAMANALYZER
 	tracker_topanalyzer_shutdown ();
 #endif /* HAVE_STREAMANALYZER */
@@ -169,9 +168,13 @@ report_statistics (GObject *object)
 		}
 	}
 
+	if (g_hash_table_size (reported) < 1) {
+		g_message ("    No files handled");
+	}
+
 	g_hash_table_remove_all (reported);
 
-	g_message ("Generic Extractors:");
+	g_message ("  Generic Extractors:");
 
 	for (i = 0; i < priv->generic_extractors->len; i++) {
 		ModuleData *mdata;
@@ -194,6 +197,10 @@ report_statistics (GObject *object)
 		}
 	}
 
+	if (g_hash_table_size (reported) < 1) {
+		g_message ("    No files handled");
+	}
+
 	g_message ("--------------------------------------------------");
 
 	g_hash_table_unref (reported);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]