Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for bug in ProfilingGraph for ppm >> 10000 ppm (!)
orbiter9cb68353dab1
diff --git a/source/de/anomic/plasma/plasmaProfiling.java b/source/de/anomic/plasma/plasmaProfiling.javaindex 76eb7bc9f..b204c46c6 100644--- a/source/de/anomic/plasma/plasmaProfiling.java+++ b/source/de/anomic/plasma/plasmaProfiling.java@@ -64,7 +64,7 @@ public class plasmaProfiling {final int bottomborder = 20;final int leftscale; if(maxwords > 150000) leftscale = maxwords / 150000 * 20000; else leftscale = 10000;final int rightscale; if (maxmbytes > 1500) rightscale = maxmbytes / 1500 * 200; else rightscale = 100;- final int anotscale = 50;+ final int anotscale = 1000;final int bottomscale = 60;final int vspace = height - topborder - bottomborder;final int hspace = width - leftborder - rightborder;diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.javaindex 5bacc46a6..e1b42cc91 100644--- a/source/de/anomic/plasma/plasmaSwitchboard.java+++ b/source/de/anomic/plasma/plasmaSwitchboard.java@@ -1761,7 +1761,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.indexedPages++;// update profiling info- if (System.currentTimeMillis() - lastPPMUpdate > 30000) {+ if (System.currentTimeMillis() - lastPPMUpdate > 20000) {// we don't want to do this too oftenupdateMySeed();serverProfiling.update("ppm", Long.valueOf(currentPPM()), true);@@ -2065,7 +2065,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.}public int currentPPM() {- return serverProfiling.countEvents("indexed", 30000) * 2;+ return serverProfiling.countEvents("indexed", 20000) * 3;}public void updateMySeed() {diff --git a/source/de/anomic/server/serverProfiling.java b/source/de/anomic/server/serverProfiling.javaindex acc8ebb27..efbc7474e 100644--- a/source/de/anomic/server/serverProfiling.java+++ b/source/de/anomic/server/serverProfiling.java@@ -87,7 +87,7 @@ public class serverProfiling extends Thread {history.add(new Event(eventPayload));// clean up too old entries- while (history.size() > 1000) history.poll();+ while (history.size() > 30000) history.poll();if (history.size() % 10 == 0) { // reduce number of System.currentTimeMillis() callsEvent e;final long now = System.currentTimeMillis();