diff --git a/hibernate-core/src/main/java/org/hibernate/engine/internal/StatisticalLoggingSessionEventListener.java b/hibernate-core/src/main/java/org/hibernate/engine/internal/StatisticalLoggingSessionEventListener.java index d438dec1ed..1c8c211948 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/internal/StatisticalLoggingSessionEventListener.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/internal/StatisticalLoggingSessionEventListener.java @@ -266,7 +266,7 @@ public class StatisticalLoggingSessionEventListener extends BaseSessionEventList partialFlushCount++; partialFlushEntityCount += numberOfEntities; partialFlushCollectionCount += numberOfCollections; - partialFlushTime += ( System.nanoTime() - flushStart ); + partialFlushTime += ( System.nanoTime() - partialFlushStart ); partialFlushStart = -1; }