Skip to content

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

max. num of Entries

allo89a4cca4df10
diff --git a/htroot/xml/queues/indexing_p.java b/htroot/xml/queues/indexing_p.java
index fb4fc0bfc..df8954332 100644
--- a/htroot/xml/queues/indexing_p.java
+++ b/htroot/xml/queues/indexing_p.java
@@ -97,8 +97,15 @@ public class indexing_p {
if ((switchboard.sbQueue.size() > 0)) {
entryList.addAll(switchboard.sbQueue.list(0));
}
+ int size=10;
+ if(post!= null && post.containsKey("num")){
+ size=(int)Integer.parseInt((String)post.get("num"));
+ }
+ if(size>entryList.size()){
+ size=entryList.size();
+ }
- for (i = 0; i < entryList.size(); i++) {
+ for (i = 0; i < size; i++) {
boolean inProcess = i < inProcessCount;
pcentry = (plasmaSwitchboardQueue.Entry) entryList.get(i);
long entrySize = pcentry.size();