pike.git / lib / modules / Filesystem.pmod / Monitor.pmod / basic.pike

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:472:    //! @param st    //! New stat for the monitor.    //!    //! This function is called by @[check()] to schedule the    //! next check.    protected void update(Stdio.Stat st)    {    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;    }       if (st) {    // Start with a delta proportional to the time since mtime/ctime,    // but bound this to the max setting. A stat in the future will be    // adjusted to the max interval.    int mtime = max(st->mtime, st->ctime);    int d = ((time(1) - mtime) >> 2);    if (!initialized && (d >= 0)) {