From 19559e2856fbdb920a95ffef4b7166cef2fbb072 Mon Sep 17 00:00:00 2001 From: "Alexander.A.Kuznetsov@gmail.com" Date: Fri, 20 Jan 2012 17:21:54 +0000 Subject: [PATCH] fixing dividing bu zero git-svn-id: https://russianmorphology.googlecode.com/svn/trunk@126 d817d54c-26ab-11de-abc9-2f7d1455ff7a --- .../src/test/java/org/apache/lucene/TestAllWords.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dictionary-reader/src/test/java/org/apache/lucene/TestAllWords.java b/dictionary-reader/src/test/java/org/apache/lucene/TestAllWords.java index cf3e88e..7ab67db 100644 --- a/dictionary-reader/src/test/java/org/apache/lucene/TestAllWords.java +++ b/dictionary-reader/src/test/java/org/apache/lucene/TestAllWords.java @@ -96,7 +96,7 @@ public class TestAllWords { RemoveFlexiaWithPrefixes removeFlexiaWithPrefixes = new RemoveFlexiaWithPrefixes(wordStringCleaner); dictionaryReader.process(removeFlexiaWithPrefixes); long time = System.currentTimeMillis() - startTime; - System.out.println("Done " + wordCount.get() + " in " + time + " ms. " + wordCount.get() / (time / 1000L) + " word per second"); + System.out.println("Done " + wordCount.get() + " in " + time + " ms. " + wordCount.get() / (time / 1000.0) + " word per second"); } @Test