Skip to content

Commit 6847ead

Browse files
committed
review comments
1 parent 6dc1af4 commit 6847ead

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/main/java/org/elasticsearch/index/shard/InternalIndexingStats.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ IndexingStats.Stats stats(
211211
final long totalIndexingTimeSinceShardStartedInNanos = totalIndexingTimeInNanos - indexingTimeBeforeShardStartedInNanos;
212212
// This is different from indexing time as it also includes the
213213
final long totalIndexingExecutionTimeInNanos = totalIndexingTimeInNanos + writeIndexingBufferTime.sum();
214-
final long totalIndexingExecutionTimeSinceShardStartedInNanos = totalIndexingExecutionTimeInNanos - indexingLoadBeforeShardStartedInNanos;
214+
final long totalIndexingExecutionTimeSinceShardStartedInNanos = totalIndexingExecutionTimeInNanos
215+
- indexingLoadBeforeShardStartedInNanos;
215216
final double recentIndexingLoadSinceShardStarted = recentIndexMetric.calculateRateSince(
216217
currentTimeInNanos,
217218
recentIndexMetric.getRate(currentTimeInNanos),

0 commit comments

Comments
 (0)