Skip to content

Apache Lucene open-source search software

[hunspell] fix TestPerformance measurement after millis->nanos conversion

Peter Gromovab50fe640be1
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