Skip to content

Commit

Permalink
Merge pull request microsoft#112 from zarenner/patch-1
Browse files Browse the repository at this point in the history
Fix time.clock() -> time.time() in _file_cache.py
  • Loading branch information
tedchamb authored Sep 12, 2018
2 parents 46046b0 + 360131d commit 340a4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vsts/vsts/_file_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def load(self):
self.data = {}
try:
if os.path.isfile(self.file_name):
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():
logger.debug('Cache file expired: %s', file=self.file_name)
os.remove(self.file_name)
else:
Expand Down

0 comments on commit 340a4e2

Please sign in to comment.