diff options
| author | Zeev Suraski <zeev@php.net> | 2002-08-17 20:32:26 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2002-08-17 20:32:26 +0000 |
| commit | 3b646f0e5d36b4de79666639c8793746bee11c88 (patch) | |
| tree | 535ab5ee4f111a32b0d27e640962d233346f281d /ext/session/mod_files.c | |
| parent | 2372caf57e0ada91c21d72e0424011dbefdd9466 (diff) | |
| download | php-git-3b646f0e5d36b4de79666639c8793746bee11c88.tar.gz | |
Use mtime instead of atime, as we always update the session file anyway.
Diffstat (limited to 'ext/session/mod_files.c')
| -rw-r--r-- | ext/session/mod_files.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++; } |
