Update of /cvsroot/nutch/nutch/src/java/net/nutch/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19907
Modified Files: FetchListTool.java Log Message: This fixes a bug, where a page's next fetch time was wrongly set, thus defeating the mechanism to prevent the same page being included in two fetchlists generated within less than FETCH_GENERATION_DELAY_MS period. Index: FetchListTool.java =================================================================== RCS file: /cvsroot/nutch/nutch/src/java/net/nutch/tools/FetchListTool.java,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** FetchListTool.java 22 Oct 2004 23:30:20 -0000 1.26 --- FetchListTool.java 12 Nov 2004 22:03:28 -0000 1.27 *************** *** 505,509 **** curScore.set(scoreByLinkCount ? (float)Math.log(results.length) : page.getScore()); ! page.setNextFetchTime(page.getNextFetchTime() + FETCH_GENERATION_DELAY_MS); writer.append(curScore, new FetchListEntry(shouldFetch, page, results)); } --- 505,509 ---- curScore.set(scoreByLinkCount ? (float)Math.log(results.length) : page.getScore()); ! page.setNextFetchTime(System.currentTimeMillis() + FETCH_GENERATION_DELAY_MS); writer.append(curScore, new FetchListEntry(shouldFetch, page, results)); } ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Nutch-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nutch-cvs