diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java index f74f2628e..285cd7e21 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java @@ -587,8 +587,10 @@ public class PackWriter { stats.thinPackBytes = out.length() - (headerEnd - headerStart); for (CachedPack pack : cachedPacks) { + long deltaCnt = pack.getDeltaCount(); stats.reusedObjects += pack.getObjectCount(); - stats.reusedDeltas += pack.getDeltaCount(); + stats.reusedDeltas += deltaCnt; + stats.totalDeltas += deltaCnt; reuseSupport.copyPackAsIs(out, pack); } writeChecksum(out);