Skip to content

Commit

Permalink
Merge 1437cc1 into 5b7c5d8
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavmagarwal committed Aug 7, 2015
2 parents 5b7c5d8 + 1437cc1 commit 22e827e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mozci/utils/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def clean_directory():
path = os.path.expanduser('~/.mozilla/mozci/')
filter_build_files = fnmatch.filter(os.listdir(path), "builds-*")
permissible_last_date = datetime.date.today() - datetime.timedelta(days=30)
permissible_timestamp = int(permissible_last_date.strftime("%s"))
permissible_timestamp = int(time.mktime(permissible_last_date.timetuple()))
for filename in filter_build_files:
full_filepath = os.path.join(path, filename)
last_mod_timestamp = int(os.stat(full_filepath).st_mtime)
Expand Down

0 comments on commit 22e827e

Please sign in to comment.