aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Klitzing <andre@incubo.de>2009-10-15 21:22:39 +0200
committerA. Klitzing <andre@incubo.de>2009-10-15 21:22:39 +0200
commit792010ba32a15b33e9a7c94e2f2119f6d9e2524d (patch)
tree9221c51386e72d56d7c4798a8315575888da42e5
parentb69246c6463db24db3608634c59acfb5b6276665 (diff)
downloadmpd-792010ba32a15b33e9a7c94e2f2119f6d9e2524d.tar.gz
mpd-792010ba32a15b33e9a7c94e2f2119f6d9e2524d.tar.xz
mpd-792010ba32a15b33e9a7c94e2f2119f6d9e2524d.zip
notify_queue: use g_timeout_add_seconds()
Diffstat (limited to '')
-rw-r--r--src/inotify_queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inotify_queue.c b/src/inotify_queue.c
index da5a215f8..4941f4905 100644
--- a/src/inotify_queue.c
+++ b/src/inotify_queue.c
@@ -33,7 +33,7 @@ enum {
* update_enqueue(). This increases the probability that
* updates can be bundled.
*/
- INOTIFY_UPDATE_DELAY_MS = 5000,
+ INOTIFY_UPDATE_DELAY_S = 5,
};
static GSList *inotify_queue;
@@ -102,7 +102,7 @@ mpd_inotify_enqueue(char *uri_utf8)
if (queue_source_id != 0)
g_source_remove(queue_source_id);
- queue_source_id = g_timeout_add(INOTIFY_UPDATE_DELAY_MS,
+ queue_source_id = g_timeout_add_seconds(INOTIFY_UPDATE_DELAY_S,
mpd_inotify_run_update, NULL);
inotify_queue = NULL;