git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3759 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
(no author) 18 years ago
parent 651b05ba43
commit a29cb2e1af

@ -33,7 +33,7 @@ function countdown(){
document.getElementById("nextUpdate").innerHTML=wait; document.getElementById("nextUpdate").innerHTML=wait;
wait--; wait--;
if(wait==0){ if(wait==0){
refresh() refresh();
} }
} }
function refresh(){ function refresh(){
@ -43,13 +43,13 @@ function refresh(){
} }
function requestStatus(){ function requestStatus(){
statusRPC=createRequestObject() statusRPC=createRequestObject();
statusRPC.open('get', '/xml/status_p.xml'); statusRPC.open('get', '/xml/status_p.xml');
statusRPC.onreadystatechange = handleStatus; statusRPC.onreadystatechange = handleStatus;
statusRPC.send(null) statusRPC.send(null);
} }
function requestQueues(){ function requestQueues(){
queuesRPC=createRequestObject() queuesRPC=createRequestObject();
queuesRPC.open('get', '/xml/queues_p.xml'); queuesRPC.open('get', '/xml/queues_p.xml');
queuesRPC.onreadystatechange = handleQueues; queuesRPC.onreadystatechange = handleQueues;
queuesRPC.send(null); queuesRPC.send(null);
@ -61,9 +61,9 @@ function handleStatus(){
return; return;
} }
var statusResponse = statusRPC.responseXML; var statusResponse = statusRPC.responseXML;
statusTag=getFirstChild(statusResponse, "status") statusTag=getFirstChild(statusResponse, "status");
ppm=getValue(getFirstChild(statusTag, "ppm")) ppm=getValue(getFirstChild(statusTag, "ppm"));
var ppmNum = document.getElementById("ppmNum"); var ppmNum = document.getElementById("ppmNum");
removeAllChildren(ppmNum); removeAllChildren(ppmNum);

@ -31,6 +31,6 @@ function createLinkCol(url, linktext){
link.setAttribute("target", "_blank"); link.setAttribute("target", "_blank");
text=document.createTextNode(linktext); text=document.createTextNode(linktext);
link.appendChild(text); link.appendChild(text);
col.appendChild(link) col.appendChild(link);
return col return col;
} }

@ -60,7 +60,7 @@ function handleTextState(req) {
var urlHash = response.getElementsByTagName("urlHash")[0].firstChild.data; var urlHash = response.getElementsByTagName("urlHash")[0].firstChild.data;
var status = response.getElementsByTagName("status")[0].firstChild.data; var status = response.getElementsByTagName("status")[0].firstChild.data;
var span = document.getElementById("h" + urlHash) var span = document.getElementById("h" + urlHash);
removeAllChildren(span); removeAllChildren(span);
//span.removeChild(span.firstChild); //span.removeChild(span.firstChild);

@ -75,7 +75,7 @@ public abstract class kelondroAbstractOrder implements kelondroOrder {
} /* else if ((a instanceof Integer) && (b instanceof Integer)) { } /* else if ((a instanceof Integer) && (b instanceof Integer)) {
return ((Integer) a).compareTo((Integer) b); return ((Integer) a).compareTo((Integer) b);
} */ else } */ else
throw new IllegalArgumentException("Object type or Object type combination not supported: a=" + a + "[" + a.getClass().getName() + "], b=" + b + "[" + b.getClass().getName() + "]"); throw new IllegalArgumentException("Object type or Object type combination not supported: a=" + a + ((a != null) ? "[" + a.getClass().getName() + "]" : "") + ", b=" + b + ((b != null) ? "[" + b.getClass().getName() + "]" : ""));
} }
public byte[] zero() { public byte[] zero() {

@ -286,7 +286,8 @@ public class plasmaDHTChunk {
this.status = chunkStatus_FILLED; this.status = chunkStatus_FILLED;
return refcount; return refcount;
} catch (kelondroException e) { } catch (kelondroException e) {
log.logSevere("selectTransferIndexes database corrupted: " + e.getMessage(), e); //log.logSevere("selectTransferIndexes database corrupted: " + e.getMessage(), e);
log.logSevere("selectTransferIndexes database corrupted: " + e.getMessage());
indexContainers = new indexContainer[0]; indexContainers = new indexContainer[0];
urlCache = new HashMap(); urlCache = new HashMap();
this.status = chunkStatus_FAILED; this.status = chunkStatus_FAILED;

Loading…
Cancel
Save