aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-04-13 21:01:19 +0200
committerMax Kellermann <max@duempel.org>2010-04-13 21:31:57 +0200
commit393bcd961ab750b2fdeba03e18f16b39ac82d38a (patch)
tree632e34a1bd208fc05869b7450e818ddf7e95fc93 /src/main.c
parent4d1eedbaa2be7e9e59f2332d9bf8886b9b634070 (diff)
inotify: added setting "auto_update_depth"
Limits the depth of the watched directories. This is useful to keep resource usage down and speed up MPD startup.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 80102968..c93a3f61 100644
--- a/src/main.c
+++ b/src/main.c
@@ -379,7 +379,8 @@ int main(int argc, char *argv[])
success = config_get_bool(CONF_AUTO_UPDATE, false);
#ifdef ENABLE_INOTIFY
if (success && mapper_has_music_directory())
- mpd_inotify_init();
+ mpd_inotify_init(config_get_unsigned(CONF_AUTO_UPDATE_DEPTH,
+ G_MAXUINT));
#else
if (success)
g_warning("inotify: auto_update was disabled. enable during compilation phase");