Branch: Tag:

2018-03-28

2018-03-28 12:39:09 by Martin Karlgren <marty@roxen.com>

Filesystem.Monitor: Only multiply by file_interval_factor when path isn't a dir for sure.

Previously monitors on non-existing paths could get very long poll intervals, which
led to unexpected effects in Inotify mode, where the scan time typically is high but
Inotify isn't able to watch the non-existing path.

545:    int delta = max_dir_check_interval || global::max_dir_check_interval;    this::st = st;    -  if (!st || !st->isdir) { +  if (st && !st->isdir) {    delta *= file_interval_factor || global::file_interval_factor;    }