[tracker] TrackerMinerFS: Ensure the timer is created after initial crawling.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] TrackerMinerFS: Ensure the timer is created after initial crawling.
- Date: Tue, 8 Sep 2009 16:23:58 +0000 (UTC)
commit 900bf50bec2875abc43139a0f652a7e3590c2d61
Author: Carlos Garnacho <carlos lanedo com>
Date: Tue Sep 8 17:48:36 2009 +0200
TrackerMinerFS: Ensure the timer is created after initial crawling.
After initial crawling timer is freed and set to NULL, this ensures that events
coming from the monitor will also have a timer enabled for measurements.
src/libtracker-miner/tracker-miner-fs.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 058eac6..4d45a5b 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -890,6 +890,10 @@ item_queue_handlers_set_up (TrackerMinerFS *fs)
return;
}
+ if (!fs->private->timer) {
+ fs->private->timer = g_timer_new ();
+ }
+
g_object_get (fs, "status", &status, NULL);
if (g_strcmp0 (status, _("Processing files")) != 0) {
/* Don't spam this */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]