You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2022/02/26 14:41:53 UTC

[jena] branch main updated: JENA-2279: Fix for writing out times of index loading.

This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git


The following commit(s) were added to refs/heads/main by this push:
     new cbbd574  JENA-2279: Fix for writing out times of index loading.
     new 020c9dc  Merge pull request #1208 from afs/xloader-fix
cbbd574 is described below

commit cbbd5749fad6a03fba87045a833c86421d2f8d1f
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Sat Feb 26 11:57:06 2022 +0000

    JENA-2279: Fix for writing out times of index loading.
---
 .../src/main/java/org/apache/jena/tdb2/xloader/ProcBuildIndexX.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/xloader/ProcBuildIndexX.java b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/xloader/ProcBuildIndexX.java
index a714307..37b774c 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/xloader/ProcBuildIndexX.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/xloader/ProcBuildIndexX.java
@@ -84,11 +84,11 @@ public class ProcBuildIndexX
     public static void exec(String location, String indexName, int sortThreads, /*unused*/String sortIndexArgs, XLoaderFiles loaderFiles) {
 
         Timer timer = new Timer();
-        timer.startTimer();
         FmtLog.info(BulkLoaderX.LOG_Index, "Build index %s", indexName);
-        long timeMillis = timer.endTimer();
 
+        timer.startTimer();
         long items = ProcBuildIndexX.exec2(location, indexName, sortThreads, sortIndexArgs, loaderFiles);
+        long timeMillis = timer.endTimer();
 
         double xSec = timeMillis/1000.0;
         double rate = items/xSec;