emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8c909d7: * src/gfilenotify.c (Fgfile_add_watch): De


From: Michael Albinus
Subject: [Emacs-diffs] master 8c909d7: * src/gfilenotify.c (Fgfile_add_watch): Decrease polling rate.
Date: Thu, 24 Sep 2015 07:36:34 +0000

branch: master
commit 8c909d75128b5bf92b090d34adbe07ed882ecd74
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    * src/gfilenotify.c (Fgfile_add_watch): Decrease polling rate.
---
 src/gfilenotify.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gfilenotify.c b/src/gfilenotify.c
index b5baa30..8b6b0a0 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);
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]