From ab50fe640be1499c2d9875e74be6efe7326688a7 Mon Sep 17 00:00:00 2001 From: Peter Gromov Date: Wed, 12 Oct 2022 11:29:07 +0200 Subject: [PATCH] [hunspell] fix TestPerformance measurement after millis->nanos conversion --- .../org/apache/lucene/analysis/hunspell/TestPerformance.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/TestPerformance.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/TestPerformance.java index 0342b3a671b..04782b77471 100644 --- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/TestPerformance.java +++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/TestPerformance.java @@ -259,7 +259,7 @@ public class TestPerformance extends LuceneTestCase { for (int i = 0; i < 7; i++) { long start = System.nanoTime(); iteration.run(consumer); - times.add(System.nanoTime() - start / 100_000); + times.add((System.nanoTime() - start) / 1_000_000); } System.out.println( what