diff options
| author | orbiter <mc@yacy.net> | 2013-07-23 19:10:11 +0200 |
|---|---|---|
| committer | orbiter <mc@yacy.net> | 2013-07-23 19:10:11 +0200 |
| commit | 9c681cc00d8fba4c5a80f2bbb36bb4dc6ba73248 (patch) | |
| tree | 729c93b261d86877b0a632d0252cb0cd97e5a0f7 /htroot/js | |
| parent | 86b514cf4604fc7497646c270e9e28599037b966 (diff) | |
added segment sizes, postprocessing status and cpu load to crawler
monitor
Diffstat (limited to 'htroot/js')
| -rw-r--r-- | htroot/js/Crawler.js | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/htroot/js/Crawler.js b/htroot/js/Crawler.js index cb9f4d279..c7b085594 100644 --- a/htroot/js/Crawler.js +++ b/htroot/js/Crawler.js @@ -89,12 +89,24 @@ function handleStatus(){ trafCrawlerSpan.appendChild(document.createTextNode(Math.round((trafficCrawlerValue) / 1024 / 10.24) / 100)); dbsize=getFirstChild(statusTag, "dbsize"); - urlpublictextSize=getValue(getFirstChild(dbsize, "urlpublictext")); - rwipublictextSize=getValue(getFirstChild(dbsize, "rwipublictext")); - webgraphSize=getValue(getFirstChild(dbsize, "webgraph")); - document.getElementById("urldbsize").firstChild.nodeValue=urlpublictextSize; - document.getElementById("webgraphsize").firstChild.nodeValue=webgraphSize; - document.getElementById("rwidbsize").firstChild.nodeValue=rwipublictextSize; + urlpublictext=getValue(getFirstChild(dbsize, "urlpublictext")); + urlpublictextSegmentCount=getValue(getFirstChild(dbsize, "urlpublictextSegmentCount")); + webgraph=getValue(getFirstChild(dbsize, "webgraph")); + webgraphSegmentCount=getValue(getFirstChild(dbsize, "webgraphSegmentCount")); + rwipublictext=getValue(getFirstChild(dbsize, "rwipublictext")); + rwipublictextSegmentCount=getValue(getFirstChild(dbsize, "rwipublictextSegmentCount")); + document.getElementById("urlpublictextSize").firstChild.nodeValue=urlpublictext; + document.getElementById("urlpublictextSegmentCount").firstChild.nodeValue=urlpublictextSegmentCount; + document.getElementById("webgraphSize").firstChild.nodeValue=webgraph; + document.getElementById("webgraphSegmentCount").firstChild.nodeValue=webgraphSegmentCount; + document.getElementById("rwipublictextSize").firstChild.nodeValue=rwipublictext; + document.getElementById("rwipublictextSegmentCount").firstChild.nodeValue=rwipublictextSegmentCount; + + postprocessing=getFirstChild(statusTag, "postprocessing"); + document.getElementById("postprocessing").firstChild.nodeValue=getValue(getFirstChild(postprocessing, "status")); + + load=getFirstChild(statusTag, "load"); + document.getElementById("load").firstChild.nodeValue=getValue(load); loaderqueue=getFirstChild(statusTag, "loaderqueue"); loaderqueue_size=getValue(getFirstChild(loaderqueue, "size")); |
