set of small fixes and comments

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5893 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent d9e62508e5
commit 07f09742bb

@ -37,7 +37,7 @@
$(document).ready(function() { $(document).ready(function() {
yconf = { yconf = {
url : 'http://localhost:8080', url : 'http://localhost:8080',
global : true global : true,
theme : 'start', theme : 'start',
title : 'YaCy Portal Search' title : 'YaCy Portal Search'
}; };

@ -340,7 +340,7 @@ public class ReferenceContainer<ReferenceType extends Reference> extends RowSet
final ReferenceContainer<ReferenceType> small, final ReferenceContainer<ReferenceType> small,
final ReferenceContainer<ReferenceType> large, final ReferenceContainer<ReferenceType> large,
final int maxDistance) { 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(); assert small.rowdef.equals(large.rowdef) : "small = " + small.rowdef.toString() + "; large = " + large.rowdef.toString();
final int keylength = small.rowdef.width(0); final int keylength = small.rowdef.width(0);
assert (keylength == large.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> i1,
final ReferenceContainer<ReferenceType> i2, final ReferenceContainer<ReferenceType> i2,
final int maxDistance) { 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(); assert i1.rowdef.equals(i2.rowdef) : "i1 = " + i1.rowdef.toString() + "; i2 = " + i2.rowdef.toString();
final int keylength = i1.rowdef.width(0); final int keylength = i1.rowdef.width(0);
assert (keylength == i2.rowdef.width(0)); assert (keylength == i2.rowdef.width(0));

@ -545,7 +545,7 @@ public final class plasmaWordIndex {
); );
// STORE URL TO LOADED-URL-DB // STORE URL TO LOADED-URL-DB
metadata.store(newEntry); metadata.store(newEntry); // TODO: should be serialized; integrated in IODispatcher
final long storageEndTime = System.currentTimeMillis(); final long storageEndTime = System.currentTimeMillis();

@ -87,7 +87,8 @@ public class serverProfiling extends Thread {
history.add(new Event(eventPayload)); history.add(new Event(eventPayload));
// clean up too old entries // 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 if (history.size() % 10 == 0) { // reduce number of System.currentTimeMillis() calls
Event e; Event e;
final long now = System.currentTimeMillis(); final long now = System.currentTimeMillis();

Loading…
Cancel
Save