[tracker] TrackerMinerFiles: Don't overwrite throttle settings.



commit 694f3fb960ff6decdf540ab95d61a871526ecda6
Author: Carlos Garnacho <carlos gnome org>
Date:   Mon Oct 26 13:54:22 2009 +0100

    TrackerMinerFiles: Don't overwrite throttle settings.
    
    Throttle is already being set based on battery status in constructed(), don't
    overwrite that setting.

 src/tracker-miner-fs/tracker-miner-files.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/src/tracker-miner-fs/tracker-miner-files.c b/src/tracker-miner-fs/tracker-miner-files.c
index 6b40f7c..6b9ab4c 100644
--- a/src/tracker-miner-fs/tracker-miner-files.c
+++ b/src/tracker-miner-fs/tracker-miner-files.c
@@ -306,7 +306,6 @@ miner_files_constructed (GObject *object)
         TrackerMinerFS *fs;
         GSList *dirs;
 	GSList *mounts = NULL, *m;
-	gint throttle;
 
 	G_OBJECT_CLASS (tracker_miner_files_parent_class)->constructed (object);
 
@@ -407,11 +406,6 @@ miner_files_constructed (GObject *object)
 		g_object_unref (file);
         }
 
-	throttle = tracker_config_get_throttle (mf->private->config);
-
-	/* Throttle in config goes from 0 to 20, translate to 0.0 -> 1.0 */
-	tracker_miner_fs_set_throttle (TRACKER_MINER_FS (mf), (1.0 / 20) * throttle);
-
 	/* Add removable media */
 	g_message ("Setting up directories to iterate which are removable devices");
 



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