Skip to content

Commit

Permalink
removed DEBUG output
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4725 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
danielr committed Apr 22, 2008
1 parent 79a3ede commit 21418a2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions source/de/anomic/yacy/yacyVersion.java
Expand Up @@ -532,7 +532,6 @@ public static void deleteOldDownloads(File filesPath, int deleteAfterDays) {

// remove old files
long now = System.currentTimeMillis();
System.out.println("+-+ DEBUG now is "+ new Date(now));
final Iterator<yacyVersion> iter = downloadedreleases.descendingIterator();
while (iter.hasNext()) {
release = iter.next();
Expand All @@ -544,7 +543,6 @@ public static void deleteOldDownloads(File filesPath, int deleteAfterDays) {
}

File downloadedFile = new File(filesPath + File.separator + release.name);
System.out.println("+-+ DEBUG lastModified of "+ downloadedFile.getName() +" is "+ new Date(downloadedFile.lastModified()) +" delta="+ (now-downloadedFile.lastModified()) +" > "+ deleteAfterMillis);
if(now - downloadedFile.lastModified() > deleteAfterMillis) {
if(!downloadedFile.delete()) {
serverLog.logWarning("STARTUP", "cannot delete old release "+ downloadedFile.getAbsolutePath());
Expand Down

0 comments on commit 21418a2

Please sign in to comment.