Skip to content

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

another bar. shows your current ppm on WatchCrawler.html

allof2908d0208f3
diff --git a/htroot/js/WatchCrawler.js b/htroot/js/WatchCrawler.js
index 198671f11..700014b0c 100644
--- a/htroot/js/WatchCrawler.js
+++ b/htroot/js/WatchCrawler.js
@@ -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;