Revision: 1908 http://archive-access.svn.sourceforge.net/archive-access/?rev=1908&view=rev Author: bradtofel Date: 2007-08-17 17:58:34 -0700 (Fri, 17 Aug 2007) Log Message: ----------- BUGFIX: (unreported) bad logic for tracking last date fixed -- was not updating correctly, so always indicated last date being the same as the first date. Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourceindex/filters/CaptureToUrlResultFilter.java Modified: trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourceindex/filters/CaptureToUrlResultFilter.java =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourceindex/filters/CaptureToUrlResultFilter.java 2007-08-18 00:56:22 UTC (rev 1907) +++ trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourceindex/filters/CaptureToUrlResultFilter.java 2007-08-18 00:58:34 UTC (rev 1908) @@ -85,7 +85,7 @@ resultRef.put(RESULT_ORIGINAL_URL,originalUrl); resultRef.put(RESULT_URL,currentUrl); resultRef.put(RESULT_FIRST_CAPTURE,firstCapture); - resultRef.put(RESULT_LAST_CAPTURE,firstCapture); + resultRef.put(RESULT_LAST_CAPTURE,lastCapture); resultRef.put(RESULT_NUM_CAPTURES,"1"); resultRef.put(RESULT_NUM_VERSIONS,"1"); } @@ -103,7 +103,7 @@ firstCapture = captureDate; resultRef.put(RESULT_FIRST_CAPTURE,firstCapture); } - if(captureDate.compareTo(lastCapture) < 0) { + if(captureDate.compareTo(lastCapture) > 0) { lastCapture = captureDate; resultRef.put(RESULT_LAST_CAPTURE,lastCapture); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |