You are hereForums / Bugs / Videocache cleaner deleted time

Videocache cleaner deleted time


2 replies [Last post]
Offline
Joined: Jan 13 2010
Videocache cleaner deleted time
Printer-friendly versionSend to friend

Hi.
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?

admin's picture
Online
Joined: Nov 2 2008

Hi stivi,

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.

Thank you!

Offline
Joined: Jan 13 2010

Hi,
Thans for the explanation.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <code>
  • Lines and paragraphs break automatically.
  • HTML tags will be transformed to conform to HTML standards.
  • Search Engines will index and follow ONLY links to allowed domains.

More information about formatting options

CAPTCHA
Are you a human visitor ?
Image CAPTCHA
Enter the characters (without spaces) shown in the image.

Buy Now

Videocache Bundle (RPM and tar archive) is available for just $39.99. Secure your copy now by clicking the button below.
For details, check this page.

Recent comments

Spread it

Thank you for spreading the word!

Who's online

There are currently 2 users and 105 guests online.