Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
changed performance menu to accept milliseconds; 200 milliseconds may be appropriate for all crawling jobs; indexing should be set to 0
orbiter10781f36b792
diff --git a/htroot/Performance_p.html b/htroot/Performance_p.htmlindex 5624ebc1a..ff4f43df8 100644--- a/htroot/Performance_p.html+++ b/htroot/Performance_p.html@@ -42,8 +42,8 @@<td class="small" align="right">#[busycycles]#</td><td class="small" align="right">#[sleeppercycle]#</td><td class="small" align="right">#[execpercycle]#</td>-<td class="small" align="right"><input name="#[threadname]#_idlesleep" type="text" size="4" maxlength="4" value="#[idlesleep]#"> sec</td>-<td class="small" align="right"><input name="#[threadname]#_busysleep" type="text" size="4" maxlength="4" value="#[busysleep]#"> sec</td>+<td class="small" align="right"><input name="#[threadname]#_idlesleep" type="text" align="right" size="7" maxlength="7" value="#[idlesleep]#"> milliseconds</td>+<td class="small" align="right"><input name="#[threadname]#_busysleep" type="text" align="right" size="7" maxlength="7" value="#[busysleep]#"> milliseconds</td><td class="small" align="left">#[longdescr]#</td></tr>#{/table}#diff --git a/htroot/Performance_p.java b/htroot/Performance_p.javaindex 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 loopsif (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.initindex 76ed172ec..eabcf1f1b 100644--- a/yacy.init+++ b/yacy.init@@ -399,11 +399,11 @@ xpstopw=true40_peerseedcycle_idlesleep=180000040_peerseedcycle_busysleep=120000050_localcrawl_idlesleep=10000-50_localcrawl_busysleep=0+50_localcrawl_busysleep=20061_globalcrawltrigger_idlesleep=10000-61_globalcrawltrigger_busysleep=0+61_globalcrawltrigger_busysleep=20062_remotetriggeredcrawl_idlesleep=20000-62_remotetriggeredcrawl_busysleep=0+62_remotetriggeredcrawl_busysleep=20070_cachemanager_idlesleep=1000070_cachemanager_busysleep=080_indexing_idlesleep=10000