From: Zeev Suraski Date: Sat, 17 Aug 2002 20:32:26 +0000 (+0000) Subject: Use mtime instead of atime, as we always update the session file anyway. X-Git-Tag: RELEASE_0_91~410 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b646f0e5d36b4de79666639c8793746bee11c88;p=php Use mtime instead of atime, as we always update the session file anyway. --- diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 95db098095..193501a50b 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -202,7 +202,7 @@ static int ps_files_cleanup_dir(const char *dirname, int maxlifetime TSRMLS_DC) buf[dirname_len + entry_len + 1] = '\0'; /* check whether its last access was more than maxlifet ago */ if (VCWD_STAT(buf, &sbuf) == 0 && - (now - sbuf.st_atime) > maxlifetime) { + (now - sbuf.st_mtime) > maxlifetime) { VCWD_UNLINK(buf); nrdels++; }