]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/gfilenotify.c (Fgfile_add_watch): Decrease polling rate.
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 24 Sep 2015 07:36:12 +0000 (09:36 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 24 Sep 2015 07:36:12 +0000 (09:36 +0200)
src/gfilenotify.c

index b5baa30d7a4117de825599e5eb31b3dbb7e99346..8b6b0a0cd2dc41bff6f26fe4296928d5873dc487 100644 (file)
@@ -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);