We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46046b0 + 360131d commit 340a4e2Copy full SHA for 340a4e2
vsts/vsts/_file_cache.py
@@ -35,7 +35,7 @@ def load(self):
35
self.data = {}
36
try:
37
if os.path.isfile(self.file_name):
38
- if self.max_age > 0 and os.stat(self.file_name).st_mtime + self.max_age < time.clock():
+ if self.max_age > 0 and os.stat(self.file_name).st_mtime + self.max_age < time.time():
39
logger.debug('Cache file expired: %s', file=self.file_name)
40
os.remove(self.file_name)
41
else:
0 commit comments