[tracker] tracker-extract: Show stats message for 0 items listed too
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: Show stats message for 0 items listed too
- Date: Mon, 20 Sep 2010 16:08:36 +0000 (UTC)
commit 2edc0cd7b512ec605c54640d0443f7671fea4f2f
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]