diff options
author | Martyn Russell <martyn@lanedo.com> | 2010-06-02 11:52:31 +0300 |
---|---|---|
committer | Martyn Russell <martyn@lanedo.com> | 2010-06-02 11:52:31 +0300 |
commit | 914b0110e675e919f24a60907d600e6828d9699e (patch) | |
tree | f4ecbfcc0cde24d9a5f102c325eb1887061044fc | |
parent | 8543a41c585f242ba57ec6af0dbef556d1e2ff2f (diff) | |
download | tracker-914b0110e675e919f24a60907d600e6828d9699e.tar.gz |
tracker-miner-fs: Fixed crawling-interval issues
* Was trying to register 2 properties of the same name
* Limit was MAXINT, now it is 365
* Comment for config file updated accordingly
-rw-r--r-- | src/miners/fs/tracker-config.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/miners/fs/tracker-config.c b/src/miners/fs/tracker-config.c index d1f517746..b1bb26771 100644 --- a/src/miners/fs/tracker-config.c +++ b/src/miners/fs/tracker-config.c @@ -52,7 +52,7 @@ #define DEFAULT_INDEX_ON_BATTERY FALSE #define DEFAULT_INDEX_ON_BATTERY_FIRST_TIME TRUE #define DEFAULT_LOW_DISK_SPACE_LIMIT 1 /* 0->100 / -1 */ -#define DEFAULT_CRAWLING_INTERVAL 0 /* 0->7 / -1 */ +#define DEFAULT_CRAWLING_INTERVAL 0 /* 0->365 / -1 */ typedef struct { /* General */ @@ -327,26 +327,14 @@ tracker_config_class_init (TrackerConfigClass *klass) " List of files to NOT index (separator=;)", G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); g_object_class_install_property (object_class, - PROP_CRAWLING_INTERVAL, + PROP_CRAWLING_INTERVAL, g_param_spec_int ("crawling-interval", "Crawling interval", " Interval in days to check the filesystem is up to date in the database." " If set to 0, crawling always occurs on startup, if -1 crawling is" - " disabled entirely.", - 0, - G_MAXINT, - DEFAULT_CRAWLING_INTERVAL, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); - - /* Crawling */ - g_object_class_install_property (object_class, - PROP_CRAWLING_INTERVAL, - g_param_spec_int ("crawling-interval", - "Crawling interval", - " Interval at which startup crawling may happen. 0 is always, -1 is never," - " and any number > 0 is the crawling interval in number of days.", + " disabled entirely. Maximum is 365.", -1, - G_MAXINT, + 365, DEFAULT_CRAWLING_INTERVAL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); |