mirror of
https://github.com/facebook/sapling.git
synced 2024-12-26 06:21:48 +03:00
util: fix mtime used in gcdir
Summary: The parameter `mtimethreshold` should be used instead of a constant of 14 days. This fixes an issue where sigtrace output takes a lot of space in hg rage output. Reviewed By: DurhamG Differential Revision: D23819021 fbshipit-source-id: e639b01d729463a4822fa93604ce3a038fbd4a9a
This commit is contained in:
parent
2b0829b9f5
commit
15fb0f4f51
@ -4774,7 +4774,7 @@ def gcdir(path, mtimethreshold):
|
||||
"""
|
||||
paths = [os.path.join(path, p[0]) for p in listdir(path)]
|
||||
stats = statfiles(paths)
|
||||
deadline = time.time() - 24 * 3600 * 14
|
||||
deadline = time.time() - mtimethreshold
|
||||
for path, stat in zip(paths, stats):
|
||||
if stat is None:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user