* src/gfilenotify.c (Fgfile_add_watch): Decrease polling rate.
This commit is contained in:
parent
f247147d16
commit
8c909d7512
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue