From: Michael Albinus Date: Thu, 24 Sep 2015 07:36:12 +0000 (+0200) Subject: * src/gfilenotify.c (Fgfile_add_watch): Decrease polling rate. X-Git-Tag: emacs-25.0.90~1224^2~27 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8c909d75128b5bf92b090d34adbe07ed882ecd74;p=emacs.git * src/gfilenotify.c (Fgfile_add_watch): Decrease polling rate. --- diff --git a/src/gfilenotify.c b/src/gfilenotify.c index b5baa30d7a4..8b6b0a0cd2d 100644 --- a/src/gfilenotify.c +++ b/src/gfilenotify.c @@ -215,6 +215,10 @@ will be reported only in case of the `moved' event. */) file); } + /* The default rate limit is 800 msec. We adapt this. */ + g_file_monitor_set_rate_limit (monitor, 100); + + /* Subscribe to the "changed" signal. */ g_signal_connect (monitor, "changed", (GCallback) dir_monitor_callback, NULL);