Skip to content

Commit

Permalink
fix for memory limit computation ?
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3125 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
borg-0300 committed Dec 22, 2006
1 parent e7c7f33 commit d98ba7b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions source/de/anomic/plasma/plasmaWordIndex.java
Expand Up @@ -39,9 +39,9 @@
import de.anomic.index.indexCollectionRI;
import de.anomic.index.indexContainer;
import de.anomic.index.indexContainerOrder;
import de.anomic.index.indexRWIEntry;
import de.anomic.index.indexRAMRI;
import de.anomic.index.indexRI;
import de.anomic.index.indexRWIEntry;
import de.anomic.index.indexRWIEntryNew;
import de.anomic.index.indexURLEntry;
import de.anomic.kelondro.kelondroBase64Order;
Expand Down Expand Up @@ -82,7 +82,8 @@ public plasmaWordIndex(File indexRoot, long rwibuffer, long lurlbuffer, long pre
}

public int minMem() {
return dhtOutCache.minMem() + dhtInCache.minMem() + collections.minMem();
// return dhtOutCache.minMem() + dhtInCache.minMem() + collections.minMem();
return collections.minMem();
}

public int maxURLinDHTOutCache() {
Expand Down Expand Up @@ -566,26 +567,26 @@ public void abort() {
}

public void pause() {
synchronized(this) {
if(pause == false) {
synchronized (this) {
if (!pause) {
pause = true;
serverLog.logInfo("INDEXCLEANER", "IndexCleaner-Thread paused");
serverLog.logInfo("INDEXCLEANER", "IndexCleaner-Thread paused");
}
}
}

public void endPause() {
synchronized(this) {
if (pause == true) {
synchronized (this) {
if (pause) {
pause = false;
this.notifyAll();
serverLog.logInfo("INDEXCLEANER", "IndexCleaner-Thread resumed");
}
}
}

public void waiter() {
synchronized(this) {
synchronized (this) {
if (this.pause) {
try {
this.wait();
Expand All @@ -597,18 +598,17 @@ public void waiter() {
}
}
}
/*
public static void main(String[] args) {
// System.out.println(kelondroMSetTools.fastStringComparator(true).compare("RwGeoUdyDQ0Y", "rwGeoUdyDQ0Y"));
// System.out.println(new Date(reverseMicroDateDays(microDateDays(System.currentTimeMillis()))));
/*
File indexdb = new File("D:\\dev\\proxy\\DATA\\INDEX");
plasmaWordIndex index = new plasmaWordIndex(indexdb, true, 555, 1000, new serverLog("TESTAPP"));
Iterator containerIter = index.wordContainers("5A8yhZMh_Kmv", plasmaWordIndex.RL_WORDFILES, true);
while (containerIter.hasNext()) {
System.out.println("File: " + (indexContainer) containerIter.next());
}
*/
}

*/
}

0 comments on commit d98ba7b

Please sign in to comment.