* src/gfilenotify.c (Fgfile_add_watch): Decrease polling rate.

This commit is contained in:
Michael Albinus 2015-09-24 09:36:12 +02:00
parent f247147d16
commit 8c909d7512

View 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);