From 3ded1efe84d89cadfeaa6a44c02e32688421050c Mon Sep 17 00:00:00 2001 From: lotus Date: Thu, 11 Sep 2008 18:51:47 +0000 Subject: [PATCH] kelondroExceptionCounter didn't work git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5138 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- locales/de.lng | 1 + source/de/anomic/plasma/plasmaDHTChunk.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/locales/de.lng b/locales/de.lng index 4cc72e50f..5f7a9e690 100644 --- a/locales/de.lng +++ b/locales/de.lng @@ -1397,6 +1397,7 @@ Use Default Profile:==Standard Profil benutzen: Save==Speichern and use==und nutze of the defined performance.==der vorgegebenen Geschwindigkeit. +show expert settings==Zeige Experten-Einstellungen Changes take effect immediately==Änderungen werden sofort wirksam Cache Settings:==Cache Einstellungen: Cache Type==Cache Typ diff --git a/source/de/anomic/plasma/plasmaDHTChunk.java b/source/de/anomic/plasma/plasmaDHTChunk.java index a90009ecd..1cbd020be 100644 --- a/source/de/anomic/plasma/plasmaDHTChunk.java +++ b/source/de/anomic/plasma/plasmaDHTChunk.java @@ -66,7 +66,7 @@ public class plasmaDHTChunk { private long selectionEndTime = 0; private int transferFailedCounter = 0; - private int kelondroExceptionCounter = 0; + private static int kelondroExceptionCounter = 0; public indexContainer firstContainer() { return indexContainers[0]; @@ -272,7 +272,7 @@ public class plasmaDHTChunk { urlCache = new HashMap(); this.status = chunkStatus_FAILED; kelondroExceptionCounter++; - if (kelondroExceptionCounter > 50) wordIndex.deleteIndexOnExit(); // delete index on exit for rebuild + if (kelondroExceptionCounter > 500) wordIndex.deleteIndexOnExit(); // delete index on exit for rebuild return 0; } }