aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Albinus2015-09-24 09:36:12 +0200
committerMichael Albinus2015-09-24 09:36:12 +0200
commit8c909d75128b5bf92b090d34adbe07ed882ecd74 (patch)
tree2a2bf9e7b5ebd3dbd2c91e53cc7dcde3216907fb /src
parentf247147d1646e1d80068d5d8aaf284707606fe9d (diff)
downloademacs-8c909d75128b5bf92b090d34adbe07ed882ecd74.tar.gz
emacs-8c909d75128b5bf92b090d34adbe07ed882ecd74.zip
* src/gfilenotify.c (Fgfile_add_watch): Decrease polling rate.
Diffstat (limited to 'src')
-rw-r--r--src/gfilenotify.c4
1 files changed, 4 insertions, 0 deletions
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. */)
215 file); 215 file);
216 } 216 }
217 217
218 /* The default rate limit is 800 msec. We adapt this. */
219 g_file_monitor_set_rate_limit (monitor, 100);
220
221 /* Subscribe to the "changed" signal. */
218 g_signal_connect (monitor, "changed", 222 g_signal_connect (monitor, "changed",
219 (GCallback) dir_monitor_callback, NULL); 223 (GCallback) dir_monitor_callback, NULL);
220 224