[tracker] tracker-miner-fs: On error, return correct defaults for config
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-miner-fs: On error, return correct defaults for config
- Date: Mon, 15 Dec 2014 12:33:41 +0000 (UTC)
commit 3742904af9d57dda2ffca6be8af8e5c58e436a72
Author: Martyn Russell <martyn lanedo com>
Date: Mon Dec 15 12:22:03 2014 +0000
tracker-miner-fs: On error, return correct defaults for config
This covers tracker_config_get_crawling_interval() and
_get_removable_days_threshold() which were returning just 0.
src/miners/fs/tracker-config.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/miners/fs/tracker-config.c b/src/miners/fs/tracker-config.c
index b297dfd..7d5f4b5 100644
--- a/src/miners/fs/tracker-config.c
+++ b/src/miners/fs/tracker-config.c
@@ -937,7 +937,7 @@ tracker_config_get_ignored_files (TrackerConfig *config)
gint
tracker_config_get_crawling_interval (TrackerConfig *config)
{
- g_return_val_if_fail (TRACKER_IS_CONFIG (config), 0);
+ g_return_val_if_fail (TRACKER_IS_CONFIG (config), DEFAULT_CRAWLING_INTERVAL);
return g_settings_get_int (G_SETTINGS (config), "crawling-interval");
}
@@ -945,7 +945,7 @@ tracker_config_get_crawling_interval (TrackerConfig *config)
gint
tracker_config_get_removable_days_threshold (TrackerConfig *config)
{
- g_return_val_if_fail (TRACKER_IS_CONFIG (config), 0);
+ g_return_val_if_fail (TRACKER_IS_CONFIG (config), DEFAULT_REMOVABLE_DAYS_THRESHOLD);
return g_settings_get_int (G_SETTINGS (config), "removable-days-threshold");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]