Skip to content

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

set of small fixes and comments

orbiter07f09742bbd7
diff --git a/htroot/yacy/ui/yacyui-portaltest.html b/htroot/yacy/ui/yacyui-portaltest.html
index 8d7b29caa..d3b6af8de 100644
--- a/htroot/yacy/ui/yacyui-portaltest.html
+++ b/htroot/yacy/ui/yacyui-portaltest.html
@@ -37,7 +37,7 @@
$(document).ready(function() {
yconf = {
url : 'http://localhost:8080',
- global : true
+ global : true,
theme : 'start',
title : 'YaCy Portal Search'
};
diff --git a/source/de/anomic/kelondro/text/ReferenceContainer.java b/source/de/anomic/kelondro/text/ReferenceContainer.java
index 6f7546d12..29dae3996 100644
--- a/source/de/anomic/kelondro/text/ReferenceContainer.java
+++ b/source/de/anomic/kelondro/text/ReferenceContainer.java
@@ -340,7 +340,7 @@ public class ReferenceContainer<ReferenceType extends Reference> extends RowSet
final ReferenceContainer<ReferenceType> small,
final ReferenceContainer<ReferenceType> large,
final int maxDistance) {
- System.out.println("DEBUG: JOIN METHOD BY TEST, maxdistance = " + maxDistance);
+ //System.out.println("DEBUG: JOIN METHOD BY TEST, maxdistance = " + maxDistance);
assert small.rowdef.equals(large.rowdef) : "small = " + small.rowdef.toString() + "; large = " + large.rowdef.toString();
final int keylength = small.rowdef.width(0);
assert (keylength == large.rowdef.width(0));
@@ -369,7 +369,7 @@ public class ReferenceContainer<ReferenceType extends Reference> extends RowSet
final ReferenceContainer<ReferenceType> i1,
final ReferenceContainer<ReferenceType> i2,
final int maxDistance) {
- System.out.println("DEBUG: JOIN METHOD BY ENUMERATION, maxdistance = " + maxDistance);
+ //System.out.println("DEBUG: JOIN METHOD BY ENUMERATION, maxdistance = " + maxDistance);
assert i1.rowdef.equals(i2.rowdef) : "i1 = " + i1.rowdef.toString() + "; i2 = " + i2.rowdef.toString();
final int keylength = i1.rowdef.width(0);
assert (keylength == i2.rowdef.width(0));
diff --git a/source/de/anomic/plasma/plasmaWordIndex.java b/source/de/anomic/plasma/plasmaWordIndex.java
index 87b0590df..79f6b34a7 100644
--- a/source/de/anomic/plasma/plasmaWordIndex.java
+++ b/source/de/anomic/plasma/plasmaWordIndex.java
@@ -545,7 +545,7 @@ public final class plasmaWordIndex {
);
// STORE URL TO LOADED-URL-DB
- metadata.store(newEntry);
+ metadata.store(newEntry); // TODO: should be serialized; integrated in IODispatcher
final long storageEndTime = System.currentTimeMillis();
diff --git a/source/de/anomic/server/serverProfiling.java b/source/de/anomic/server/serverProfiling.java
index efbc7474e..ad9fcc8cc 100644
--- a/source/de/anomic/server/serverProfiling.java
+++ b/source/de/anomic/server/serverProfiling.java
@@ -87,7 +87,8 @@ public class serverProfiling extends Thread {
history.add(new Event(eventPayload));
// clean up too old entries
- while (history.size() > 30000) history.poll();
+ int tp = history.size() - 30000;
+ while (tp-- > 0) history.poll();
if (history.size() % 10 == 0) { // reduce number of System.currentTimeMillis() calls
Event e;
final long now = System.currentTimeMillis();