diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsGarbageCollector.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsGarbageCollector.java index dcfc8d523..b7f58566e 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsGarbageCollector.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsGarbageCollector.java @@ -95,8 +95,8 @@ public class DfsGarbageCollector { private long coalesceGarbageLimit = 50 << 20; + private long startTimeMillis; private List packsBefore; - private Set allHeads; private Set nonHeads; private Set txnHeads; @@ -190,6 +190,7 @@ public class DfsGarbageCollector { throw new IllegalStateException( JGitText.get().supportOnlyPackIndexVersion2); + startTimeMillis = System.currentTimeMillis(); ctx = (DfsReader) objdb.newReader(); try { refdb.refresh(); @@ -422,6 +423,7 @@ public class DfsGarbageCollector { PackStatistics stats = pw.getStatistics(); pack.setPackStats(stats); + pack.setLastModified(startTimeMillis); newPackStats.add(stats); newPackObj.add(pw.getObjectSet());