Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pytensor/link/c/cmodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ def rmtree_empty(*args, **kwargs):
to_delete_empty.append((args, kwargs))

# add entries that are not in the entry_from_key dictionary
time_now = time.perf_counter()
time_now = time.time()
# Go through directories in alphabetical order to ensure consistent
# behavior.
try:
Expand Down Expand Up @@ -976,7 +976,7 @@ def unpickle_failure():
# directories in alphabetical order so as to make
# sure all new processes only use the first one.
if cleanup:
age = time.perf_counter() - last_access_time(entry)
age = time.time() - last_access_time(entry)
if delete_if_problem or age > self.age_thresh_del:
rmtree(
root,
Expand Down Expand Up @@ -1528,7 +1528,7 @@ def clear_unversioned(self, min_age=None):
assert key[0]

to_del = []
time_now = time.perf_counter()
time_now = time.time()
for filename in os.listdir(self.dirname):
if filename.startswith("tmp"):
try:
Expand Down