In vccleaner script in line 87 is:
if cur_time - os.stat(video)[stat.ST_MTIME] > expire*86400:
but in line 88 is:
age = int((cur_time - os.stat(video)[stat.ST_ATIME]) / 86400)
Is it correct?
In line 87 shouldn't be stat.ST_ATIME instead of stat.ST_MTIME?
Thank you for pointing it out. But videocache updates both, the access and modified time, of a video whenever a video is served from cache. So, both are same at any given point of time. Though I'll change it in the next version, the end result will be some.
You need to sign in. Please sign in to add answer to this question.