Skip to content

Commit

Permalink
Fix index stats collection (#5226)
Browse files Browse the repository at this point in the history
Use the correct fields for indexing and merges.
bernd authored and mpfz0r committed Nov 9, 2018
1 parent 9691a70 commit 229b11e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -63,10 +63,10 @@ private static IndexStats buildIndexStats(final JsonNode stats) {
final long getTotalTimeSeconds = get.path("total_time_in_millis").asLong() / 1000L;

final JsonNode indexing = stats.path("indexing");
final long indexingTotal = indexing.path("total").asLong();
final long indexingTotalTimeSeconds = indexing.path("total_time_in_millis").asLong() / 1000L;
final long indexingTotal = indexing.path("index_total").asLong();
final long indexingTotalTimeSeconds = indexing.path("index_time_in_millis").asLong() / 1000L;

final JsonNode merge = stats.path("merge");
final JsonNode merge = stats.path("merges");
final long mergeTotal = merge.path("total").asLong();
final long mergeTotalTimeSeconds = merge.path("total_time_in_millis").asLong() / 1000L;

0 comments on commit 229b11e

Please sign in to comment.