another bar. shows your current ppm on WatchCrawler.html

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1739 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 19 years ago
parent 1dd1781063
commit f2908d0208

@ -60,15 +60,16 @@ function handleStatus(){
}
var statusResponse = statusRPC.responseXML;
statusTag=getFirstChild(getFirstChild(statusResponse, ""), "status")
/*indexingqueue=getFirstChild(statusTag, "indexingqueue");
indexingqueue_size=getValue(getFirstChild(indexingqueue, "size"));
indexingqueue_max=getValue(getFirstChild(indexingqueue, "max"));*/
ppm=getValue(getFirstChild(statusTag, "ppm"))
/* document.getElementById("indexingqueuesize").firstChild.nodeValue=indexingqueue_size;
document.getElementById("indexingqueuemax").firstChild.nodeValue=indexingqueue_max;*/
document.getElementById("ppm").firstChild.nodeValue=ppm;
var ppmSpan = document.getElementById("ppm");
removeAllChildren(ppmSpan);
ppmSpan.appendChild(document.createTextNode(ppm));
ppmSpan.appendChild(document.createElement("br"));
for(i=0;i<ppm;i++){
img=document.createElement("img");
img.setAttribute("src", "/env/grafics/green-bar.png");
ppmSpan.appendChild(img);
}
}
@ -105,6 +106,13 @@ function handleQueues(){
createremoteCrawlerTable(remotecrawlerqueue);
}
}
function removeAllChildren(element){
child=element.firstChild;
while(child!=null){
element.removeChild(child);
child=element.firstChild;
}
}
function clearTable(table, numSkip){
if(numSkip==null){
numSkip=0;

Loading…
Cancel
Save