The total delta count is supposed to include reused deltas, not just newly created deltas. Change-Id: I98cbdcef80d59714a4f62ff322e7b709b08b6d26 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>tags/v0.12.1
out.endObject(); | out.endObject(); | ||||
otp.setCRC(out.getCRC32()); | otp.setCRC(out.getCRC32()); | ||||
stats.reusedObjects++; | stats.reusedObjects++; | ||||
if (otp.isDeltaRepresentation()) | |||||
if (otp.isDeltaRepresentation()) { | |||||
stats.totalDeltas++; | |||||
stats.reusedDeltas++; | stats.reusedDeltas++; | ||||
} | |||||
return; | return; | ||||
} catch (StoredObjectRepresentationNotAvailableException gone) { | } catch (StoredObjectRepresentationNotAvailableException gone) { | ||||
if (otp.getOffset() == out.length()) { | if (otp.getOffset() == out.length()) { |