use mtime instead of atime for expiration

This commit is contained in:
ansuz
2018-05-03 14:03:56 +02:00
parent 8d3545d217
commit 67fd70b4c7
2 changed files with 10 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ nThen(function (waitFor) {
sem.take(function (give) {
Fs.unlink(f.filename, give(function (err) {
if (err) { return void console.error(err + " " + f.filename); }
console.log(f.filename + " " + f.size + " " + (+f.atime) + " " + (+new Date()));
console.log(f.filename + " " + f.size + " " + (+f.mtime) + " " + (+new Date()));
}));
});
});