From 10781f36b792c6078ff8a46a190bf898dcf24dad Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 17 Jun 2005 11:52:21 +0000 Subject: [PATCH] changed performance menu to accept milliseconds; 200 milliseconds may be appropriate for all crawling jobs; indexing should be set to 0 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@299 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/Performance_p.html | 4 ++-- htroot/Performance_p.java | 8 ++++---- yacy.init | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/htroot/Performance_p.html b/htroot/Performance_p.html index 5624ebc1a..ff4f43df8 100644 --- a/htroot/Performance_p.html +++ b/htroot/Performance_p.html @@ -42,8 +42,8 @@ #[busycycles]# #[sleeppercycle]# #[execpercycle]# - sec - sec + milliseconds + milliseconds #[longdescr]# #{/table}# diff --git a/htroot/Performance_p.java b/htroot/Performance_p.java index 6b4cacf82..a5cad4b20 100644 --- a/htroot/Performance_p.java +++ b/htroot/Performance_p.java @@ -116,8 +116,8 @@ public class Performance_p { if ((post != null) && (post.containsKey("delaysubmit"))) { // load with new values - idlesleep = Long.parseLong((String) post.get(threadName + "_idlesleep", "1")) * 1000; - busysleep = Long.parseLong((String) post.get(threadName + "_busysleep", "1")) * 1000; + idlesleep = Long.parseLong((String) post.get(threadName + "_idlesleep", "1")); + busysleep = Long.parseLong((String) post.get(threadName + "_busysleep", "1")); // check values to prevent short-cut loops if (idlesleep == 0) idlesleep = 1000; @@ -131,8 +131,8 @@ public class Performance_p { idlesleep = Long.parseLong(switchboard.getConfig(threadName + "_idlesleep" , "1000")); busysleep = Long.parseLong(switchboard.getConfig(threadName + "_busysleep", "1000")); } - prop.put("table_" + c + "_idlesleep", idlesleep / 1000); - prop.put("table_" + c + "_busysleep", busysleep / 1000); + prop.put("table_" + c + "_idlesleep", idlesleep); + prop.put("table_" + c + "_busysleep", busysleep); c++; } diff --git a/yacy.init b/yacy.init index 76ed172ec..eabcf1f1b 100644 --- a/yacy.init +++ b/yacy.init @@ -399,11 +399,11 @@ xpstopw=true 40_peerseedcycle_idlesleep=1800000 40_peerseedcycle_busysleep=1200000 50_localcrawl_idlesleep=10000 -50_localcrawl_busysleep=0 +50_localcrawl_busysleep=200 61_globalcrawltrigger_idlesleep=10000 -61_globalcrawltrigger_busysleep=0 +61_globalcrawltrigger_busysleep=200 62_remotetriggeredcrawl_idlesleep=20000 -62_remotetriggeredcrawl_busysleep=0 +62_remotetriggeredcrawl_busysleep=200 70_cachemanager_idlesleep=10000 70_cachemanager_busysleep=0 80_indexing_idlesleep=10000