From bb267297c1a80b0c82822cd43204a54bd629a23a Mon Sep 17 00:00:00 2001 From: Brett Meyer Date: Tue, 14 Jan 2014 14:30:05 -0500 Subject: [PATCH] HHH-8863 correct StatisticalLoggingSessionEventListener partial flush timing --- .../engine/internal/StatisticalLoggingSessionEventListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }