steffenvan commented on code in PR #1629:
URL: https://github.com/apache/jackrabbit-oak/pull/1629#discussion_r1712678169


##########
oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/IndexerStatisticsTracker.java:
##########
@@ -77,7 +77,7 @@ public void onEntryEnd(String entryPath) {
     public String formatStats() {
         long endTimeNanos = System.nanoTime();
         long totalTimeNanos = endTimeNanos - startIndexingNanos;
-        double avgTimePerDocumentMicros = 
FormattingUtils.safeComputeAverage(totalIndexingTimeNanos/1000, nodesIndexed);
+        long avgTimePerDocumentMicros = 
Math.round(FormattingUtils.safeComputeAverage(totalIndexingTimeNanos/1000, 
nodesIndexed));

Review Comment:
   NIT: formatting. 
   
   Hmm I think we would benefit from a formatter. Not sure I caught all of them.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: oak-dev-unsubscr...@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to