diff options
author | James Kolb <jkolb@google.com> | 2015-12-15 17:14:45 -0500 |
---|---|---|
committer | James Kolb <jkolb@google.com> | 2015-12-16 14:06:16 -0500 |
commit | 3096a133409ebda900415e9988be49c3426cbcdb (patch) | |
tree | a34c499e50dd7ec0c29ea77ae32e844bb6ef3b9d /org.eclipse.jgit | |
parent | cfa0b2fb3c695bf6698148e5d5626acb17106aed (diff) | |
download | jgit-3096a133409ebda900415e9988be49c3426cbcdb.tar.gz jgit-3096a133409ebda900415e9988be49c3426cbcdb.zip |
Included cached deltas in delta packStatistics.
Previously, non-reuse deltas were only included in packStatistics if they
were not cached by the deltaWindow.
Change-Id: I7684d8214875f0a7569b34614f8a3ba341dbde9c
Signed-off-by: James Kolb <jkolb@google.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java index 19b6b080da..f3f77c4498 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java @@ -1551,6 +1551,8 @@ public class PackWriter implements AutoCloseable { if (zbuf != null) { out.writeHeader(otp, otp.getCachedSize()); out.write(zbuf); + typeStats.cntDeltas++; + typeStats.deltaBytes += out.length() - otp.getOffset(); return; } } |