From 5aa96dbc360468591e0b14b151b43ee3448a20d4 Mon Sep 17 00:00:00 2001 From: orbiter Date: Sun, 23 Mar 2008 13:14:57 +0000 Subject: [PATCH] fix for shutdown configuration git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4596 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaSearchEvent.java | 4 +--- source/yacy.java | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/source/de/anomic/plasma/plasmaSearchEvent.java b/source/de/anomic/plasma/plasmaSearchEvent.java index ad4c5c156..05efaaf83 100644 --- a/source/de/anomic/plasma/plasmaSearchEvent.java +++ b/source/de/anomic/plasma/plasmaSearchEvent.java @@ -287,8 +287,6 @@ public final class plasmaSearchEvent { // load only urls if there was not yet a root url of that hash // find the url entry - serverProfiling.update("SEARCH", new plasmaProfiling.searchEvent(query.id(true), "obtain result entry - start", 0, 0)); - long startTime = System.currentTimeMillis(); indexURLEntry.Components comp = page.comp(); String pagetitle = comp.dc_title().toLowerCase(); @@ -350,7 +348,6 @@ public final class plasmaSearchEvent { plasmaSnippetCache.TextSnippet snippet = plasmaSnippetCache.retrieveTextSnippet(comp, snippetFetchWordHashes, (snippetFetchMode == 2), ((query.constraint != null) && (query.constraint.get(plasmaCondenser.flag_cat_indexof))), 180, 3000, (snippetFetchMode == 2) ? Integer.MAX_VALUE : 100000); long snippetComputationTime = System.currentTimeMillis() - startTime; serverLog.logInfo("SEARCH_EVENT", "text snippet load time for " + comp.url() + ": " + snippetComputationTime + ", " + ((snippet.getErrorCode() < 11) ? "snippet found" : ("no snippet found (" + snippet.getError() + ")"))); - serverProfiling.update("SEARCH", new plasmaProfiling.searchEvent(query.id(true), "obtain result entry - finish", 0, 0)); if (snippet.getErrorCode() < 11) { // we loaded the file and found the snippet @@ -577,6 +574,7 @@ public final class plasmaSearchEvent { public ResultEntry oneResult(int item) { // check if we already retrieved this item (happens if a search pages is accessed a second time) + serverProfiling.update("SEARCH", new plasmaProfiling.searchEvent(query.id(true), "obtain one result entry - start", 0, 0)); if (this.result.sizeStore() > item) { // we have the wanted result already in the result array .. return that return this.result.element(item).element; diff --git a/source/yacy.java b/source/yacy.java index 2bd5df986..f87f8321a 100644 --- a/source/yacy.java +++ b/source/yacy.java @@ -472,7 +472,7 @@ public final class yacy { Properties config = new Properties(); try { - config.load(new FileInputStream(new File(homePath, "DATA/SETTINGS/httpProxy.conf"))); + config.load(new FileInputStream(new File(homePath, "DATA/SETTINGS/yacy.conf"))); } catch (FileNotFoundException e) { serverLog.logSevere(mes, "could not find configuration file."); System.exit(-1);