Author: lewismc
Date: Sat Nov  2 14:11:04 2013
New Revision: 1538195

URL: http://svn.apache.org/r1538195
Log:
NUTCH-1650 Adaptive Fetch Scheduler interval Wrong Set

Modified:
    nutch/branches/2.x/CHANGES.txt
    
nutch/branches/2.x/src/java/org/apache/nutch/crawl/AdaptiveFetchSchedule.java

Modified: nutch/branches/2.x/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/nutch/branches/2.x/CHANGES.txt?rev=1538195&r1=1538194&r2=1538195&view=diff
==============================================================================
--- nutch/branches/2.x/CHANGES.txt (original)
+++ nutch/branches/2.x/CHANGES.txt Sat Nov  2 14:11:04 2013
@@ -2,6 +2,8 @@ Nutch Change Log
 
 Current Development
 
+* NUTCH-1650 Adaptive Fetch Scheduler interval Wrong Set (Talat UYARER via 
lewismc)
+
 * NUTCH-1413 Record response time (Yasin KILINC, Talat UYARER, snagel via 
lewismc)
 
 * NUTCH-1125 JUnit test for tld (Sertac TURKEL via lewismc)

Modified: 
nutch/branches/2.x/src/java/org/apache/nutch/crawl/AdaptiveFetchSchedule.java
URL: 
http://svn.apache.org/viewvc/nutch/branches/2.x/src/java/org/apache/nutch/crawl/AdaptiveFetchSchedule.java?rev=1538195&r1=1538194&r2=1538195&view=diff
==============================================================================
--- 
nutch/branches/2.x/src/java/org/apache/nutch/crawl/AdaptiveFetchSchedule.java 
(original)
+++ 
nutch/branches/2.x/src/java/org/apache/nutch/crawl/AdaptiveFetchSchedule.java 
Sat Nov  2 14:11:04 2013
@@ -93,7 +93,6 @@ public class AdaptiveFetchSchedule exten
       case FetchSchedule.STATUS_UNKNOWN:
         break;
     }
-    page.setFetchInterval(interval);
     if (SYNC_DELTA) {
       // try to synchronize with the time of change
       // TODO: different from normal class (is delta in seconds)?
@@ -103,6 +102,8 @@ public class AdaptiveFetchSchedule exten
     }
     if (interval < MIN_INTERVAL) interval = MIN_INTERVAL;
     if (interval > MAX_INTERVAL) interval = MAX_INTERVAL;
+   
+    page.setFetchInterval(interval);
     page.setFetchTime(refTime + interval * 1000L);
     page.setModifiedTime(modifiedTime);
     page.setPrevModifiedTime(prevModifiedTime);


Reply via email to