Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2225 Parsed time calculated incorrectly

Markus Jelsmaecce5ab72371
diff --git a/CHANGES.txt b/CHANGES.txt
index 5b98b3de8..6c32c321a 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,7 @@
Nutch Change Log
+* NUTCH-2225 Parsed time calculated incorrectly (Tien Nguyen Manh via markus)
+
* NUTCH-961 Expose Tika's Boilerpipe support (Gabriele Kahlout, Vincent Slot, markus)
* NUTCH-1233 Rely on Tika for outlink extraction (markus)
diff --git a/src/java/org/apache/nutch/parse/ParseSegment.java b/src/java/org/apache/nutch/parse/ParseSegment.java
index 1adb00108..b008bed1c 100644
--- a/src/java/org/apache/nutch/parse/ParseSegment.java
+++ b/src/java/org/apache/nutch/parse/ParseSegment.java
@@ -96,6 +96,7 @@ public class ParseSegment extends NutchTool implements Tool,
return;
}
+ long start = System.currentTimeMillis();
ParseResult parseResult = null;
try {
if (parseUtil == null)
@@ -112,8 +113,6 @@ public class ParseSegment extends NutchTool implements Tool,
Parse parse = entry.getValue();
ParseStatus parseStatus = parse.getData().getStatus();
- long start = System.currentTimeMillis();
-
reporter.incrCounter("ParserStatus",
ParseStatus.majorCodes[parseStatus.getMajorCode()], 1);