Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

updated watchcrawler for the recent changes

allo6b056610e372
diff --git a/htroot/js/WatchCrawler.js b/htroot/js/WatchCrawler.js
index 3de9e3922..f0c5e07aa 100644
--- a/htroot/js/WatchCrawler.js
+++ b/htroot/js/WatchCrawler.js
@@ -77,13 +77,8 @@ function handleStatus(){
}
var wordCache=getValue(getFirstChild(statusTag, "wordCacheSize"));
- var wordCacheMaxLow=getValue(getFirstChild(statusTag, "wordCacheMaxLow"));
- var wordCacheMaxHigh=getValue(getFirstChild(statusTag, "wordCacheMaxHigh"));
- //use Low as default, but High if there are more wordcaches
- var wordCacheMax=wordCacheMaxLow;
- if(wordCache>wordCacheMax){
- wordCacheMax=wordCacheMaxHigh;
- }
+ var wordCacheMax=getValue(getFirstChild(statusTag, "wordCacheMaxCount"));
+
var percent=Math.round(wordCache/wordCacheMax*100);
diff --git a/htroot/xml/status_p.java b/htroot/xml/status_p.java
index 3cd8c35e5..069e446ee 100644
--- a/htroot/xml/status_p.java
+++ b/htroot/xml/status_p.java
@@ -65,8 +65,7 @@ public class status_p {
yacyCore.peerActions.updateMySeed();
prop.put("ppm", yacyCore.seedDB.mySeed.get(yacySeed.ISPEED, "unknown"));
prop.put("wordCacheSize", switchboard.wordIndex.wSize() + switchboard.wordIndex.kSize());
- prop.put("wordCacheMaxLow", switchboard.getConfig("wordCacheMaxLow", "10000"));
- prop.put("wordCacheMaxHigh", switchboard.getConfig("wordCacheMaxHigh", "10000"));
+ prop.put("wordCacheMaxCount", switchboard.getConfig("wordCacheMaxCount", "10000"));
// return rewrite properties
return prop;
diff --git a/htroot/xml/status_p.xml b/htroot/xml/status_p.xml
index 0fb20f882..18037c794 100644
--- a/htroot/xml/status_p.xml
+++ b/htroot/xml/status_p.xml
@@ -2,7 +2,6 @@
<status>
<ppm>#[ppm]#</ppm>
<wordCacheSize>#[wordCacheSize]#</wordCacheSize>
- <wordCacheMaxLow>#[wordCacheMaxLow]#</wordCacheMaxLow>
- <wordCacheMaxHigh>#[wordCacheMaxHigh]#</wordCacheMaxHigh>
+ <wordCacheMaxCount>#[wordCacheMaxCount]#</wordCacheMaxCount>
</status>
</xml>