From 792010ba32a15b33e9a7c94e2f2119f6d9e2524d Mon Sep 17 00:00:00 2001 From: "A. Klitzing" Date: Thu, 15 Oct 2009 21:22:39 +0200 Subject: notify_queue: use g_timeout_add_seconds() --- src/inotify_queue.c | 4 ++-- 1 file 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; -- cgit v1.2.3