Branch: Tag:

2010-01-28

2010-01-28 14:19:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Decreased the backoff speed from 1/16 to 1/256.
This means that files need to be older than max_dir_check_interval * file_interval_factor * 256 seconds before they will be polled at the maximum interval.
ie with the defaults this will be for files older than 60*5*256 seconds = 1280 minutes ~ 21 hours.

Rev: lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:1.32

1:   //   // Basic filesystem monitor.   // - // $Id: basic.pike,v 1.31 2010/01/28 14:06:45 grubba Exp $ + // $Id: basic.pike,v 1.32 2010/01/28 14:19:52 grubba Exp $   //   // 2009-07-09 Henrik Grubbström   //
317:    delta = 1 + random(delta);    }    if (st) { -  int d = 1 + ((time(1) - st->mtime)>>4); +  int d = 1 + ((time(1) - st->mtime)>>8);    if (d < 0) d = max_dir_check_interval || global::max_dir_check_interval;    if (d < delta) delta = d; -  d = 1 + ((time(1) - st->ctime)>>4); +  d = 1 + ((time(1) - st->ctime)>>8);    if (d < 0) d = max_dir_check_interval || global::max_dir_check_interval;    if (d < delta) delta = d;    }