From f2908d0208f3184484c975608b87f5d9bc49d2a2 Mon Sep 17 00:00:00 2001 From: allo Date: Wed, 22 Feb 2006 11:52:08 +0000 Subject: [PATCH] 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 --- htroot/js/WatchCrawler.js | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) 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