Author: markus
Date: Wed Feb 17 09:51:14 2016
New Revision: 1730802

URL: http://svn.apache.org/viewvc?rev=1730802&view=rev
Log:
NUTCH-2225 Parsed time calculated incorrectly

Modified:
    nutch/trunk/CHANGES.txt
    nutch/trunk/src/java/org/apache/nutch/parse/ParseSegment.java

Modified: nutch/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/nutch/trunk/CHANGES.txt?rev=1730802&r1=1730801&r2=1730802&view=diff
==============================================================================
--- nutch/trunk/CHANGES.txt (original)
+++ nutch/trunk/CHANGES.txt Wed Feb 17 09:51:14 2016
@@ -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)

Modified: nutch/trunk/src/java/org/apache/nutch/parse/ParseSegment.java
URL: 
http://svn.apache.org/viewvc/nutch/trunk/src/java/org/apache/nutch/parse/ParseSegment.java?rev=1730802&r1=1730801&r2=1730802&view=diff
==============================================================================
--- nutch/trunk/src/java/org/apache/nutch/parse/ParseSegment.java (original)
+++ nutch/trunk/src/java/org/apache/nutch/parse/ParseSegment.java Wed Feb 17 
09:51:14 2016
@@ -96,6 +96,7 @@ public class ParseSegment extends NutchT
       return;
     }
 
+    long start = System.currentTimeMillis();
     ParseResult parseResult = null;
     try {
       if (parseUtil == null)
@@ -112,8 +113,6 @@ public class ParseSegment extends NutchT
       Parse parse = entry.getValue();
       ParseStatus parseStatus = parse.getData().getStatus();
 
-      long start = System.currentTimeMillis();
-
       reporter.incrCounter("ParserStatus",
           ParseStatus.majorCodes[parseStatus.getMajorCode()], 1);
 


Reply via email to